#SuspendExempt

Exempts subsequent hotkeys and hotstrings from suspension.

#SuspendExempt Setting

Parameters

Setting

Type: String or Integer

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.

Remarks

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.

This directive does not affect the Hotkey or Hotstring functions, for which the S hotkey option or S hotstring option can be used instead.

Like other directives, #SuspendExempt cannot be executed conditionally.

Suspend, Hotkeys, Hotstrings

Examples

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."