About #If syntax usage. Topic is solved

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
mystery
Posts: 11
Joined: 28 Sep 2020, 01:19

About #If syntax usage.

Post by mystery » 31 May 2021, 03:41

What would be the ideal situation to use this syntax besides actual window active or inactive check like on real world (not complex) hotkey usage?

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: About #If syntax usage.  Topic is solved

Post by swagfag » 31 May 2021, 03:51

theres no #If in v2, only #HotIf
look no further than the docs to figure out what the ideal situation to use it is:
#hotif wrote:Creates context-sensitive hotkeys and hotstrings. Such hotkeys perform a different action (or none at all) depending on any condition (an expression).
the ideal situation is when u need hotkeys or hotstrings to perform a different action (or none at all) depending on a set of conditions

Post Reply

Return to “Ask for Help (v2)”