Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #UseHook
- #Persistent
- KeyCount=0
- ; SetTimer, Check, 10000 ;Check every 10 seconds
- SetTimer, Check, 1000 ;Check every 10 seconds
- ; return
- Loop
- {
- ; Input, Key, L1 I V
- ; Input, Key, L1 C V
- Input Key,L1 I V,{F1}{F2}{F3}{Capslock}{BS}{LSHIFT}
- ; If (WinActive("Ahk_Class XLMAIN") Or WinActive("Ahk_Class Notepad"))
- ; {
- ; AscKey:=Asc(Key)
- ; If (AscKey > 31 && AscKey < 127)
- KeyCount++
- ; countkeypress()
- TrayTip #1, %KeyCount%
- ; }
- }
- Check:
- if A_Sec = 30
- {
- FileAppend, %KeyCount%`n, bpm.txt
- KeyCount=0
- }
- ; msgbox %A_Sec%
- ; TrayTip #2, %A_Sec%
- ; }
- if A_Sec = 01
- {
- FileAppend, %KeyCount%`n, bpm.txt
- KeyCount=0
- }
- Return
- ;key
- ; 1::
- ; msgbox %KeyCount%
- ; TrayTip #1, %KeyCount%
- ; Sleep 3000 ; Let it display for 3 seconds.
- ; return
- ;func;;
- countkeypress()
- {
- TrayTip #1, %KeyCount%
- Sleep 3000 ; Let it display for 3 seconds.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement