Overclock.net banner
1 - 1 of 1 Posts

· Registered
Joined
·
956 Posts
Discussion Starter · #1 · (Edited)
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?
Code:
4WasPressedAt:=A_TickCount-5200		
~*4::4WasPressedAt:=A_TickCount		
#if A_TickCount-4WasPressedAt<5200	
*4::return
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.
 
1 - 1 of 1 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top