jimmyj Posted January 23, 2007 Share Posted January 23, 2007 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 Link to comment Share on other sites More sharing options...
Zedna Posted January 23, 2007 Share Posted January 23, 2007 (edited) HotKeySet("{Esc}", "Finish") While 1 MouseClick("left",773,919,1,1) Sleep(1000) ... WEnd Func Finish() HotKeySet("{Esc}") Exit EndFunc Edited January 23, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
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