An excerpt from AHK doc:
How can a hotkey or hotstring be made exclusive to certain program(s)? In other words, I want a certain key to act as it normally does except when a specific window is active.
The preferred method is #IfWinActive. For example:
#IfWinActive, ahk_class Notepad ^a::MsgBox You pressed Control-A while Notepad is active.
This works fine, but the entire rest of the AHK script file is conditionally run only when Notepad is focused.
How do I end the
#IfWinActive. Better yet, where is the documentation that explains what
# followed by a thing means.