Obscure question about hotkey defintions.

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
tobindax
Posts: 17
Joined: 21 Oct 2016, 07:02

Obscure question about hotkey defintions.

Post by tobindax » 30 Nov 2021, 08:28

Say I have a hotkey that redefines "$1::" and another that redefines "$!1::" and they both work properly only with a "Send, <a key of some sort" inside a "While GetKeyState("1","P")".

Is it a benefit or a bad practice to include in their while loops "&& !GetKeyState("Alt","P")" (and vice versa)?

Is that implicitly done by the core software internally anyway by the mere fact one uses "$1::" or "$!1::"?

tobindax
Posts: 17
Joined: 21 Oct 2016, 07:02

Re: Obscure question about hotkey defintions.

Post by tobindax » 30 Nov 2021, 08:36

PS To add on my OP: my furthest understanding of the feature is that something like "$1::": replaces '1' whenever one presses it so if one does include another check inside its redefinition: then: it means it will only work/be useful while '1' is kept being pressed but I don't know if I miss something.

Post Reply

Return to “Ask for Help (v1)”