Newbie question

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
blad4
Posts: 315
Joined: 07 Oct 2015, 11:06

Newbie question

14 Feb 2017, 17:36

If I hold the button down past 0.5sec, how do I get it to send ^!+{a} and nothing else? |At the moment unless exactly 0.5sec, it goes on to recognise the single down press also.

Code: Select all

$Down::
keywait, down, t0.5
if errorlevel = 1
{
send ^!+{a}
return
}
else
keywait, down, d, t0.5
if errorlevel = 0
{
return
}
else 
Send {F7}
return
TravisQ
Posts: 27
Joined: 17 May 2015, 23:51

Re: Newbie question

14 Feb 2017, 21:05

need another keywait to catch the up

Code: Select all

Down::
	keywait, down, t0.5
	if errorlevel {
		Send,a
		keywait, down
	} else
		Send,{down}
return
blad4
Posts: 315
Joined: 07 Oct 2015, 11:06

Re: Newbie question

15 Feb 2017, 03:16

Thank you, that's brill!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Descolada, GollyJer, Lamron750 and 250 guests