Daa Posted March 16, 2009 Posted March 16, 2009 Hello i have been working with autoit a while now and i have a question on how to repeat a part of the script an amount of times.Lets say i have created a simple command.While 1 = 1Mouseclickdrag('left', 1079, 70, 1079, 400)sleep(500)Mouseclickdrag('left', 1079, 1000, 1079, 600)sleep(500)WEndHow can i get him to repeat the first mouseclickdrag ( lets say 60 times ) and then then second mouseclickdrag ( lets say 1 ) time???Thanks alot in advance.
picea892 Posted March 16, 2009 Posted March 16, 2009 Not sure if I'm missing what you want. Couldn't you just use a for next? While 1 = 1 for $i= 1 to 50 Mouseclickdrag('left', 1079, 70, 1079, 400) next sleep(500) Mouseclickdrag('left', 1079, 1000, 1079, 600) sleep(500) WEnd
Daa Posted March 16, 2009 Author Posted March 16, 2009 Not sure if I'm missing what you want. Couldn't you just use a for next?While 1 = 1for $i= 1 to 50Mouseclickdrag('left', 1079, 70, 1079, 400)nextsleep(500)Mouseclickdrag('left', 1079, 1000, 1079, 600)sleep(500)WEndThis is what i wanted to know:)thanks alot.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now