AutoHotkey: Temporarily Disable AutoHotkey

By Xah Lee. Date: .

Temporarily Disable AutoHotkey

You have many personal hotkeys. In some situations, you want these hotkeys to be off temporarily. You can create a hotkeyX, so that it'll disable all your hotkeys, and press hotkeyX again to turn all your hotkeys back on. Here's a example:

; make the scroll lock key (ScrLk) toggle all hotkeys.
ScrollLock::Suspend

When hotkeys are suspended, the AutoHotkey icon in your system notification area changes to S.