Repeat/Loop

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Machariel
Newbie
Posts: 15
Joined: Mon Mar 10, 2008 8:40 pm

Repeat/Loop

Post by Machariel » Thu Mar 13, 2008 6:31 pm

How to repeat this only 2 times, when I try with the repeat/Until command it just keeps looping it all the time.

Wait>10
Let>k=0
Let>k=k+1
MouseMove>1266,664
Wait>1
LClick
Wait>1
MouseMove>1536,221
Wait>1
LClick
Wait>26
RClick
Wait>1
MouseMove>1536,337
Wait>1
LClick
Wait>2
MouseMove>702,682
Wait>1
RClick
Wait>1
MouseMove>763,692
Wait>1
LClick
Wait>1
MouseMove>745,724
Wait>1
LDown
Wait>0.3
MouseMove>701,513
Wait>0.3
LUp
Wait>3
________
discuss vaporizers
Last edited by Machariel on Tue Feb 01, 2011 11:34 pm, edited 1 time in total.

User avatar
JRL
Automation Wizard
Posts: 3505
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Thu Mar 13, 2008 6:41 pm

Added items in green. If you copy and paste be sure to remove any trailing spaces.


Let>Counter=0
Repeat>Counter
Add>counter,1


Wait>10
Let>k=0
Let>k=k+1
MouseMove>1266,664
Wait>1
LClick
Wait>1
MouseMove>1536,221
Wait>1
LClick
Wait>26
RClick
Wait>1
MouseMove>1536,337
Wait>1
LClick
Wait>2
MouseMove>702,682
Wait>1
RClick
Wait>1
MouseMove>763,692
Wait>1
LClick
Wait>1
MouseMove>745,724
Wait>1
LDown
Wait>0.3
MouseMove>701,513
Wait>0.3
LUp
Wait>3

Until>Counter=2

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts