Got bored and whenever I'm bored I'll make batch stuff it's one of my favorite languages. I made a countdown timer that takes the inputted time and counts down in 1 second intervals. Then it plays a neat little noise
CODE:
[HIDE]
@echo off
title Timer by Assaultz.
echo Enter amount of time to countdown from.
set /p input=C:\
SET timer=%input%
cls
:countdown
set /a timer-=1
echo %timer%
if %timer%==0 goto end
ping 192.0.2.2 -n 1 -w 1000 > nul
goto countdown
:end
cls
echo The timer is up. It took %input% seconds!
echo set speech = Wscript.CreateObject("SAPI.spVoice") >> "temp.vbs"
set text=Timer done.
echo speech.speak "%text%" >> "temp.vbs"
start temp.vbs
pause
del temp.vbs
[/HIDE]
Enjoy the timer
CODE:
[HIDE]
@echo off
title Timer by Assaultz.
echo Enter amount of time to countdown from.
set /p input=C:\
SET timer=%input%
cls
:countdown
set /a timer-=1
echo %timer%
if %timer%==0 goto end
ping 192.0.2.2 -n 1 -w 1000 > nul
goto countdown
:end
cls
echo The timer is up. It took %input% seconds!
echo set speech = Wscript.CreateObject("SAPI.spVoice") >> "temp.vbs"
set text=Timer done.
echo speech.speak "%text%" >> "temp.vbs"
start temp.vbs
pause
del temp.vbs
[/HIDE]
Enjoy the timer