gfcaim 0 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] Share this post Link to post Share on other sites
jaberwacky 327 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? Share this post Link to post Share on other sites
JohnOne 1,603 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. Share this post Link to post Share on other sites
gfcaim 0 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] Share this post Link to post Share on other sites