Jump to content

How To Stop At Any Time?


Guest cyber2025
 Share

Recommended Posts

Guest cyber2025

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

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...