Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #UseHook
- #Persistent
- SetTimer, Check, 1000 ;Check every 10 seconds
- Check:
- if A_Sec = 15
- {
- Loop, read, bpm.txt
- {
- LastLine := A_LoopReadLine
- if LastLine >= 100
- {
- SoundPlay, 2.wav
- }
- if LastLine < 100
- {
- SoundPlay, 1.mp3
- }
- }
- ; MsgBox %LastLine%
- }
- ; msgbox %A_Sec%
- ; TrayTip #2, %A_Sec%
- ; }
- if A_Sec = 45
- {
- Loop, read, bpm.txt
- {
- LastLine := A_LoopReadLine
- if LastLine >= 100
- {
- SoundPlay, 2.wav
- }
- if LastLine < 100
- {
- SoundPlay, 1.mp3
- }
- }
- ; MsgBox %LastLine%
- ; if LastLine =
- ; SoundPlay, 1.mp3
- ; SoundPlay, 2.wav
- }
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement