Autohotkey hotkey handlers fall through/continue to lines below
问题 I’m having some trouble with Autohotkey. I have a script with a few hotkeys but it seems that when a hotkey is pressed, not only does its handler run, but so do all lines below it, including the contents of other hotkey handlers. Below is a demonstrative example. What is the problem? How can I get Autohotkey to execute only the lines specified in the handler? #SingleInstance force ;Main loop While 1 { } ;Hotkeys: ;Quit with Ctrl+Q ^q:: { MsgBox Quitting ExitApp } ^s:: { MsgBox Hotkey1 }