Repeat Count Not Working

Ask general questions here.
OrlandoRd
Posts: 2
Joined: Wed Nov 12, 2008 2:36 am

Repeat Count Not Working

Post by OrlandoRd » Wed Nov 12, 2008 2:39 am

when i test the Repeat count it all repeats but when i compile my project and open it external it only does my recording 1 time how do i make it so it goes more than 1 time or for this occasion forever?

OrlandoRd
Posts: 2
Joined: Wed Nov 12, 2008 2:36 am

Post by OrlandoRd » Wed Nov 12, 2008 4:47 am

I dont know if you people get this.. when i open the program it only does the recording one time and then stops but i want it to do it more than1 time i want it to repeat itself forever or an specified amount of time.

what code should i modify? where?

i also have visual basic net is it possible to do that from there and how?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Post by Support Team » Wed Nov 12, 2008 9:43 am

You can use "loops" in VBNet and other programming languages.

maybe a helpful link:
http://www.startvbdotnet.com/language/loops.aspx

e.g.

...

Code: Select all

Dim d As Integer
For d = 0 To 5

element = controlElement.FindChild(Role.PushButton, "Start", null, new Point(0, 0));
Mouse.ClickElement(element, MouseButtonType.LeftButton, new Point(48, 18), 1, (int)(timeScale*1562));

Next d
End Sub
...