Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #UseHook On
- s::
- {
- k_ThisTick := A_TickCount ; grab the current tick
- ElapsedTime := k_ThisTick - k_LastTick ; time since last hotkey (ticks)
- ;MsgBox % "This much time has elapsed: " . ElapsedTime ; for debugging
- ; ElapsedTime will be null the first time
- if (!ElapsedTime || ElapsedTime > 50)
- {
- SendInput s
- k_LastTick := k_ThisTick ; store the current tick for next time
- }
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement