Sign in to follow this  
Followers 0
jimmyj

Noob having trouble looping

2 posts in this topic

Hello all-

I am totally new to AutoIt and am fairly horrible at programming in general.

I only do some HTML and that is about it.

I am trying to macro some mouse movements and clicks and then have them loop.

My loop isn't working and then one time it did work I could not figure out how to stop it.

Can someone please help me?

Here is what I have so far. It works to accomplish the task...i just need to loop it and then have the ability to end the loop.

While(1)
MouseClick("left",773,919,1,1)
Sleep(1000)
MouseClick("left",304,513,1,1)
Sleep(1000)
MouseClick("left",725,756,1,1)
Sleep(2000)
MouseClick("left",188,379,1,1)
Sleep(100)
MouseClick("left",188,379,1,1)
Sleep(1000)
MouseClick("left",188,379,1,1)
Sleep(100)
MouseClick("left",188,379,1,1)
Sleep(1000)
MouseClick("left",188,379,1,1)
Sleep(100)
MouseClick("left",188,379,1,1)
Sleep(1000)
MouseClick("left",188,379,1,1)
Sleep(100)
MouseClick("left",188,379,1,1)
Sleep(2000)
MouseClick("left",892,767,1,1)
Sleep(1000)
MouseClick("left",569,531,1,1)
Sleep(1000)
MouseClick("left",497,733,1,1)
Sleep(1000)
MouseClick("left",714,747,1,1)
Sleep(1000)
MouseClick("left",567,520,1,1)
Sleep(2000)
ExitLoop[10000]
WEnd

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