sleepy Posted December 5, 2006 Share Posted December 5, 2006 I can't find a kill or quit control for autoit scripts and or exe file. Being new to this tool and developing I make mistakes and can't stop the script. If I bring up the process control the script seams to start interacting with that or any window I open. In automationanywhere you can just do escape? Link to comment Share on other sites More sharing options...
JerryD Posted December 5, 2006 Share Posted December 5, 2006 I can't find a kill or quit control for autoit scripts and or exe file. Being new to this tool and developing I make mistakes and can't stop the script. If I bring up the process control the script seams to start interacting with that or any window I open. In automationanywhere you can just do escape?Try this HotKeySet ( '{F9}', 'MyExit' ) Func MyExit() Exit EndFunc Now, [F9] will kill the script. Sometimes you might just want to get out of a hung loop. Use this: GLOBAL $DumpOut = 0 HotKeySet ( '{F10}', 'MyExitLoop' ) Func MyExitLoop() $DumpOut = 1 EndFuncThen, add this to to the loop: If $DumpOut = 1 Then $DumpOut = 0 ExitLoop EndIfHitting [F10] will now exit the loop. Link to comment Share on other sites More sharing options...
sleepy Posted December 5, 2006 Author Share Posted December 5, 2006 AHHH Thanks!!!!I can't find a kill or quit control for autoit scripts and or exe file. Being new to thistool and developing I make mistakes and can't stop the script. If I bring up theprocess control the script seams to start interacting with that or any window I open.In automationanywhere you can just do escape? 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