v2 Suspend example #1 missing #SuspendExempt Topic is solved

Share your ideas as to how the documentation can be improved.
neogna2
Posts: 591
Joined: 15 Sep 2016, 15:44

v2 Suspend example #1 missing #SuspendExempt

18 Jul 2021, 03:38

https://lexikos.github.io/v2/docs/commands/Suspend.htm#ExHotkey

change the current example
#1: Press a hotkey once to suspend all hotkeys and hotstrings. Press it again to unsuspend.

Code: Select all

^!s::Suspend  ; Ctrl+Alt+S
to
#1: Press a hotkey once to suspend all hotkeys and hotstrings. Press it again to unsuspend.

Code: Select all

#SuspendExempt
^!s::Suspend  ; Ctrl+Alt+S
#SuspendExempt False
The current example works in v1 only because in v1 a "hotkey/hotstring subroutine whose very first line is Suspend (except Suspend On) will be exempt from suspension" but not so in v2.

Return to “Suggestions on Documentation Improvements”

Who is online

Users browsing this forum: No registered users and 17 guests