Hotkey, CapsLock & Shift & e

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
kkleinfelter
Posts: 32
Joined: 21 Dec 2018, 10:59

Hotkey, CapsLock & Shift & e

Post by kkleinfelter » 23 Mar 2023, 13:59

Using the Hotkey statement, how do I define a hotkey for CapsLock and Shift and e?

I want to use the Hotkey statement, instead of double-colon, because I need to define it conditionally. Both of the following fail with a "not a valid key name."

Code: Select all

    Hotkey, CapsLock & +e, CloseAllExplorer
    Hotkey, CapsLock & LShift & e, CloseAllExplorer
TIA


[Mod action: Moved topic to v1 section. The main section is for v2.]

User avatar
mikeyww
Posts: 26875
Joined: 09 Sep 2014, 18:38

Re: Hotkey, CapsLock & Shift & e

Post by mikeyww » 23 Mar 2023, 14:53

You don't! Read: https://www.autohotkey.com/docs/v1/Hotkeys.htm#combo_mods
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.
An example of a potential workaround is provided on that page.

Hotkey, If

You are posting in the v2 forum.

Post Reply

Return to “Ask for Help (v1)”