Guest User

Untitled

a guest
Oct 16th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. @echo off
  2. title Luke's Timer
  3. color 80
  4. mode con cols=100 lines=20
  5.  
  6. :start
  7. cls
  8. set /p timer=Set Timer:
  9. set time=%timer%
  10. goto a
  11.  
  12. :loop
  13. cls
  14. set /a time=%time% -1
  15. if %time%==0 goto timesup
  16. :a
  17. cls
  18. title %timer%
  19. echo.
  20. if %time% leq -1 goto error
  21. if time lss 100 echo %time%
  22. if time geq 100 echo %time%
  23. ping localhost -n 2 >nul
  24. cls
  25. goto loop
  26.  
  27. :error
  28. title Timer
  29. cls
  30. echo.
  31. echo ERROR!
  32. echo Press ENTER!
  33. pause >nul
  34. goto start
  35.  
  36. :error2
  37. title Timer
  38. cls
  39. echo.
  40. echo ERROR!
  41. echo Press ENTER!
  42. pause >nul
  43. goto noleft
  44.  
  45. :timesup
  46. rem start "" /min mplayer2 "C:\Windows\Media\chord.wav" /play /close
  47. set x=9
  48. title Timer
  49. echo Time's Up!
  50.  
  51. :b
  52. echo 
  53. set /a x=%x% -1
  54. if %x% leq 0 goto noleft
  55. goto b
  56.  
  57. :noleft
  58. cls
  59. echo.
  60. set /p exit=1-Use 2-Exit
  61. if %exit%==1 goto start
  62. if %exit%==2 goto Exit
  63.  
  64. :Exit
  65. exit
Add Comment
Please, Sign In to add comment