Advertisement
Guest User

S key chatter fix mechanical keyboard AHK

a guest
Oct 31st, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #UseHook On
  2.  
  3. s::
  4. {
  5. k_ThisTick := A_TickCount ; grab the current tick
  6. ElapsedTime := k_ThisTick - k_LastTick ; time since last hotkey (ticks)
  7. ;MsgBox % "This much time has elapsed: " . ElapsedTime ; for debugging
  8.  
  9. ; ElapsedTime will be null the first time
  10. if (!ElapsedTime || ElapsedTime > 50)
  11. {
  12. SendInput s
  13. k_LastTick := k_ThisTick ; store the current tick for next time
  14. }
  15. }
  16. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement