Roy2010 Posted February 9, 2010 Posted February 9, 2010 ok i am new to all of this and was wondering if anyone could help me with a little problem i am having MsgBox(1, "test", "test", 10) MouseClick( "left", 550,207, 1, 25) MouseClick( "left", 600,560, 1, 25) MouseClick( "left", 190,581, 1, 50) MouseClick( "left", 570,450, 1, 25) i want to loop the last 4 commands, but i want to be able to press a button to stop it if needed, does anyone know how to do this, i would be ever so gratefull Thanks
Developers Jos Posted February 9, 2010 Developers Posted February 9, 2010 ok i am new to all of this and was wondering if anyone could help me with a little problem i am havingMsgBox(1, "test", "test", 10)MouseClick( "left", 550,207, 1, 25)MouseClick( "left", 600,560, 1, 25)MouseClick( "left", 190,581, 1, 50)MouseClick( "left", 570,450, 1, 25)i want to loop the last 4 commands, but i want to be able to press a button to stop it if needed, does anyone know how to do this, i would be ever so gratefull ThanksWhat did the helpfile tell you when you looked for "loop" ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Roy2010 Posted February 9, 2010 Author Posted February 9, 2010 ok i can get it to loop, but how can i put in a comman that will stop it when i want it to? thanks
Developers Jos Posted February 9, 2010 Developers Posted February 9, 2010 Look at the HotKeySet() function in the helpfile. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Mobius Posted February 9, 2010 Posted February 9, 2010 HotKeySet("{ESC}","_QuitKey") IF MsgBox(65, @SCRIPTNAME, "Press ok to proceed", 10) = 1 THEN WHILE 1 MouseClick( "left", 550,207, 1, 25) MouseClick( "left", 600,560, 1, 25) MouseClick( "left", 190,581, 1, 50) MouseClick( "left", 570,450, 1, 25) WEND ENDIF EXIT ; FUNC _QuitKey() MsgBox(48,@SCRIPTNAME,"Terminated by user",5) EXIT ENDFUNC Something like this.
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