Exempts subsequent hotkeys and hotstrings from suspension.
#SuspendExempt Setting
If omitted, it defaults to True. Otherwise, specify one of the following literal values:
True or 1: Enables exemption for subsequent hotkeys and hotstrings.
False or 0: Disables exemption.
If this directive is unspecified in the script, all hotkeys or hotstrings are disabled when the script is suspended, even those which call the Suspend function.
Hotkeys and hotstrings can be suspended by the Suspend function or via the tray icon or main window.
To exempt hotkeys while the script is running, use the Hotkey function with the S option, such as Hotkey("^!c",, "S"). To exempt hotstrings while the script is running, use the Hotstring function with the S option, such as Hotstring("S"). #SuspendExempt does not affect these functions.
Like other directives, #SuspendExempt cannot be executed conditionally.
The first hotkey in this example toggles the suspension. To prevent this hotkey from being suspended after the suspension has been turned on and thus no longer being able to turn it off, it must be exempted.
#SuspendExempt ; Exempt the following hotkey from Suspend. #Esc::Suspend -1 #SuspendExempt False ; Disable exemption for any hotkeys/hotstrings below this. ^1::MsgBox "This hotkey is affected by Suspend."