Joined
·
956 Posts
What I need is lets say if the 4 key is pressed, it's disabled for 5.2 seconds. The same for the 5 6 7 8 and 9 keys except they would each have their own delay before they are usable again. I tried, I failed.
EDIT: Maybe I succeeded?
I think that works. Maybe someone could help make it so if I were pressing shift+4 during the disable period that would still work.
EDIT: Maybe I succeeded?
Code:
4WasPressedAt:=A_TickCount-5200
~*4::4WasPressedAt:=A_TickCount
#if A_TickCount-4WasPressedAt<5200
*4::return