Combining hotkeys and single, double, long presses

Get help with using AutoHotkey and its commands and hotkeys
User avatar
iilabs
Posts: 177
Joined: 07 Jun 2020, 16:57

Combining hotkeys and single, double, long presses

Post by iilabs » 21 Jan 2021, 18:28

Hi folks,

Trying to figure out how to make my numpad more functional with combo keys, single, double, and long press.

Here is the code I have so far. The long press doesn't work but everything else does. Any ideas? I have a feeling it has something to do with

Code: Select all

$
but not sure how to incorporate it. Use Hotkey command?

THANK YOU!

Code: Select all

$Numpad1::
	KeyWait, Numpad1, T0.1
	
	if (ErrorLevel)
		Send long
	else {
		KeyWait, Numpad1, D T0.1
		if (ErrorLevel)
			Send single
		
		else
			Send double
	}
	KeyWait, Numpad1
return

Numpad1 & Numpad2:: 
msgnbox, combo
return
Post Reply

Return to “Ask For Help”