Sign in to follow this  
Followers 0
Daa

Repeating.

3 posts in this topic

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 = 1

Mouseclickdrag('left', 1079, 70, 1079, 400)

sleep(500)

Mouseclickdrag('left', 1079, 1000, 1079, 600)

sleep(500)

WEnd

How 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.

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

This is what i wanted to know:)

thanks alot.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0