3 letter hotkey, is it possible?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
XtiiGmA
Posts: 26
Joined: 21 Apr 2021, 10:22

3 letter hotkey, is it possible?

01 Jun 2021, 10:20

178 / 5000
Resultados de traducción
hello friends, it is possible to set a 3 letter hotket as an example:

Code: Select all

e & w ::
msgbox, hi!
return
But if I try this:

Code: Select all

q & w & e ::
msgbox, hi!
return
not working, any ideas?
gregster
Posts: 9114
Joined: 30 Sep 2013, 06:48

Re: 3 letter hotkey, is it possible?

01 Jun 2021, 10:26

No, not really supported. But you can try this:
https://www.autohotkey.com/docs/Hotkeys.htm#combo wrote:Combinations of three or more keys are not supported. Combinations which your keyboard hardware supports can usually be detected by using #If and GetKeyState(), but the results may be inconsistent. For example:

Code: Select all

; Press AppsKey and Alt in any order, then slash (/).
#if GetKeyState("AppsKey", "P")
Alt & /::MsgBox Hotkey activated.

; If the keys are swapped, Alt must be pressed first (use one at a time):
#if GetKeyState("Alt", "P")
AppsKey & /::MsgBox Hotkey activated.

; [ & ] & \::
#if GetKeyState("[") && GetKeyState("]")
\::MsgBox

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: macromint, mikeyww, Spawnova and 354 guests