Set button unpress timer

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
iceivanov
Posts: 2
Joined: 21 Jul 2017, 08:00

Set button unpress timer

21 Jul 2017, 08:09

Hello AHK community!

I hope it's ok to ask for a noob question. I know this information is somewhere on tutorials but I couldn't figure out how to find it.

My question is how do I set a button unpress timer. Alot of times when I'm using key combinations they don't count because keyboard recognizes them as separate sequential key presses. I'd like to set a timer on my Alt and Ctrl buttons so when I unpress them, they unpress not immediately but after say half a second.

Thanks in advance!
User avatar
Capn Odin
Posts: 1352
Joined: 23 Feb 2016, 19:45
Location: Denmark
Contact:

Re: Set button unpress timer

21 Jul 2017, 19:22

Her is an example using Shift, since it is easy to see the effect when typing.

Code: Select all

$Shift::Send, {Shift down}

$Shift up::
	Sleep, 500
	Send, {Shift up}
return
Please excuse my spelling I am dyslexic.
iceivanov
Posts: 2
Joined: 21 Jul 2017, 08:00

Re: Set button unpress timer

25 Jul 2017, 07:19

Thank you! =)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: iamMG and 284 guests