Press hotkey only if that key wasn't used in a multi-key combination

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
autohotkey_avatar
Posts: 27
Joined: 04 Aug 2022, 02:51

Press hotkey only if that key wasn't used in a multi-key combination

Post by autohotkey_avatar » 15 Aug 2022, 03:08

I want a hotkey to active if I only tap LControl.

If I press ^q, or some other combination, I want it to be disregarded by Autohotkey.

My attempt, which failed, was:

Code: Select all

LControl Up::
	; this runs even if I press a combination like CTRL+Q
return

ananthuthilakan
Posts: 188
Joined: 08 Jul 2019, 05:37
Contact:

Re: Press hotkey only if that key wasn't used in a multi-key combination

Post by ananthuthilakan » 15 Aug 2022, 05:56

Code: Select all

LControl Up::
if (A_PriorKey="LControl")
	MsgBox, you clicked LControl up
return
will this work for you?

Post Reply

Return to “Ask for Help (v1)”