Sign in to follow this  
Followers 0
Guest cyber2025

How To Stop At Any Time?

3 posts in this topic

Is there a button that I can press that will stop autoit from running it's script?

The main reason for this is if I test a script and I need to stop and change it. I usually don't have a problem with it because I can quickly stop the program by shutting it down via the mouse. But now I am working with a script that will keep my mouse moving so I can't stop it. Please help.

Thanks,

Cyber2025

Share this post


Link to post
Share on other sites



In ver2 you can RigthClick on the Systemtray icon and then click Exit to stop.

In Ver3 you can define a HotKeyset on top of the above option:

HotKeySet("{ESC}", "Terminate")
; your code

Func Terminate()
    MsgBox(4096,"", "The End")
    Exit
EndFunc

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I think your only two choices are to convert the script to v3 (there is a translator available that will do some of the work for you) or to use AutoHotkey, which is backward compatible with most v2 scripts.

If using AutoHotkey, here is an example of how to assign a hotkey to pause the script:

^!p::pause

Or to exit:

^!x::ExitApp

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0