How to stop a script - AutoHotkey Community

PHOTO EMBED

Mon Dec 05 2022 03:22:45 GMT+0000 (Coordinated Universal Time)

Saved by @savabeh191 #autohotkey #0

Esc::
Suspend, Off
Pause, Off, 1
If (toggle := !toggle) {
 Suspend, On
 Pause, On, 1
}
content_copyCOPY

You can use a suspend AutoHotkey function, just press [ESC] and the script stop working, press again and it works.

https://www.autohotkey.com/boards/viewtopic.php?t