oigres Posted October 21, 2006 Share Posted October 21, 2006 i need a script that right clicks using set co-ordinates (these will be the same so they dont need to be set each time its run) ... atm it looks something like this: MouseClick("Right", 676, 443) ;x and y Sleep(90000) ;time although this works, it clicks once and then wait for the set time and finishes. I was wondering if there was a command for it to keep on looping and right click every 1min 30secs until i end the .exe? or am i heading down the wrong track?? any help would be appreciated. Thanks in advance!! Link to comment Share on other sites More sharing options...
Somerset Posted October 21, 2006 Share Posted October 21, 2006 (edited) while 1 MouseClick("Right", 676, 443) Sleep(90000) wend that is just one example of a loop but will work for what you want... Edited October 21, 2006 by beerman Link to comment Share on other sites More sharing options...
PaulIA Posted October 21, 2006 Share Posted October 21, 2006 Look into the loop functions in the help. You can set this up several ways, including using a hot key to end the script so you don't have to "kill" the exe. Might look something like this: HotKeySet("!x", "Stop") do MouseClick("right", 676, 443) Sleep(90000) until False Func Stop() Exit EndFunc Auto3Lib: A library of over 1200 functions for AutoIt 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