Advertisement
alexdubovyck

играть звук в зависимости от кол-ва клавиш

Jan 9th, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #UseHook
  2. #Persistent
  3.  
  4. SetTimer, Check, 1000 ;Check every 10 seconds
  5.  
  6.  
  7.  
  8.  
  9. Check:
  10. if A_Sec = 15
  11. {
  12. Loop, read, bpm.txt
  13. {
  14. LastLine := A_LoopReadLine
  15.  
  16. if LastLine >= 100
  17. {
  18. SoundPlay, 2.wav
  19. }
  20. if LastLine < 100
  21. {
  22. SoundPlay, 1.mp3
  23. }
  24. }
  25. ; MsgBox %LastLine%
  26. }
  27. ; msgbox %A_Sec%
  28. ; TrayTip #2, %A_Sec%
  29. ; }
  30.  
  31. if A_Sec = 45
  32. {
  33. Loop, read, bpm.txt
  34. {
  35. LastLine := A_LoopReadLine
  36.  
  37. if LastLine >= 100
  38. {
  39. SoundPlay, 2.wav
  40. }
  41. if LastLine < 100
  42. {
  43. SoundPlay, 1.mp3
  44. }
  45.  
  46. }
  47. ; MsgBox %LastLine%
  48.  
  49. ; if LastLine =
  50. ; SoundPlay, 1.mp3
  51. ; SoundPlay, 2.wav
  52.  
  53. }
  54. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement