Jump to content
Sign in to follow this  
hydroxide

Panic / Stop execution

Recommended Posts

hydroxide

Is there a way to terminate a script half-way during execution other than moving the mouse to the tray, and going right-click > exit?

It gets annoying when a series of mouse movements and keystrokes go haywire..

Any function key that could be assigned to stop execution when things go haywire ?

Share this post


Link to post
Share on other sites
maestro1024

Create a hot key that will point to an exit function

CODE

HotKeySet("{ESC}", "Terminate") ; create a hot key for the key escape

Func Terminate()

Exit 0 ; terminate the script

EndFunc

Share this post


Link to post
Share on other sites
hydroxide

Create a hot key that will point to an exit function

CODE

HotKeySet("{ESC}", "Terminate") ; create a hot key for the key escape

Func Terminate()

Exit 0 ; terminate the script

EndFunc

Thanks Maestro1024, .. works like a charm :D

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×