gfcaim Posted May 24, 2010 Share Posted May 24, 2010 I'm running my script from the sciTE editor - the script contains mouse movements. How do I stop execution when it goes wrong? I've tried Ctrl+Break but that doesn't work very often, and clicking on the icon in the taskbar can be hit and miss because of the script mouse movements taking control. Am I missing something that someone could advise me on please? [font="Comic Sans MS"]"I'm not usually a praying man, but if you are up there, please save me Superman!" (Homer J. Simpson)[/font] Link to comment Share on other sites More sharing options...
jaberwacky Posted May 24, 2010 Share Posted May 24, 2010 Post your code... Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
JohnOne Posted May 24, 2010 Share Posted May 24, 2010 Try setting a hotkey. eg Global $pause = False HotKeySet("{PAUSE}","_pause") ;your ;code ;here Func _pause() $pause = Not $pause If $pause Then While 1 Sleep(100) Wend EndIf EndFunc AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
gfcaim Posted May 24, 2010 Author Share Posted May 24, 2010 Yep - the hotkey solution works perfectly - thanks JohnOne [font="Comic Sans MS"]"I'm not usually a praying man, but if you are up there, please save me Superman!" (Homer J. Simpson)[/font] 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