Question: ahk how to stop a script?
Answer: Add an emergency exit hotkey. The most reliable method of ending an active script is to pre-emptively include an emergency ExitApp hotkey. ... 
Log off. ... 
End with taskbar icon. ... 
End all active scripts with AHKPanic()