Looking for a key delay

Ask gaming related questions
AldiandyaINF
Posts: 1
Joined: 16 Nov 2017, 09:04

Looking for a key delay

16 Nov 2017, 09:11

can someone help me makin code so whenever i press a, it disable d, and when i release a, it keep X ms delay to enable the d key

and also this script is disable when pressed y, or z key

Thanks in advance!
Rohwedder
Posts: 611
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Looking for a key delay

16 Nov 2017, 10:20

Hallo,
try:

Code: [Select all] [Download] GeSHi © Codebox Plus

Hotkey,*d,,off
*a::Hotkey,*d,,on
*a up::
Sleep, 3000 ;keep 3000 ms delay
Hotkey,*d,,off
Return
*d::Return ;disable d
*y::suspend
*z::suspend

Return to “Gaming”

Who is online

Users browsing this forum: Rohwedder and 9 guests