Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Requires AutoHotkey v2.0
- MsgBox A_MaxHotkeysPerInterval " " A_HotkeyInterval ; 70 2000
- ; A_MaxHotkeysPerInterval :=256
- ; MsgBox A_MaxHotkeysPerInterval " " A_HotkeyInterval ;
- #1:: {
- static start := A_TickCount
- static times := 0
- /**
- * 如果从上一次按键到现在的事件超过了1000 则就认为是重新开始计算.
- */
- if (A_TimeSincePriorHotkey && (A_TimeSincePriorHotkey > 1000)) {
- start := A_TickCount
- times := 0
- }
- if (A_TickCount - start > 2000) {
- MsgBox(times " T:" (A_TickCount - start))
- }
- times++
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement