How to Make a Timer With Notepad.

93,638

15

28

Posted

Introduction: How to Make a Timer With Notepad.

Open notepad.

Here's a base code frame that you can use to make a timer.

@echo off
color 0a
:1
pause
timeout 60
goto 1

color changes the color combination in the application file
timeout set the time in seconds
the :1 and the goto 1 loops the timer so that it stops and resets so you can start it again with a press of a button.
the @ehco off keeps the app from putting other stuff on the app screen to keep it clean and simple.

Step 1:

save the file as a text file ".txt" in the desired location.

Step 2:

then save it again, but this time as a batch file ".bat" in the desired location.

Step 3:

run the batch file.

Step 4:

to edit open the text file, make your changes, save it as a text file, then save agian as a batch file.

Step 5:

now you have a timer.

Share

    Recommendations

    • Microcontroller Contest

      Microcontroller Contest
    • Science of Cooking

      Science of Cooking
    • Pocket-Sized Contest

      Pocket-Sized Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    27 Comments

    Check out my other instructsbles on how to build a universal stand. Just go to my profile and look at my instructables

    Hello guys! "HiPoweredHacker" is my old account. If you liked this, you may check out my new instructables by clicking on my username! :)

    hey so i tried this but is there any way to get away the ¨press any key to close¨

    I can do basic stuff but i could not make a timer thnx im working on a project that needs this thnx!

    Been a long while since I logged in to my account...

    Didn't expect to have this many views. Thanks!

    I now have my own company website. www.fanboystudios.net

    I'm also an Android developer and have some apps on the Google Play Store!

    Also, I have a free to play online rpg at mockingjay.rpglink.in

    I had made a timer with multiple time settings, but I just put up this simple one.

    check out my version (Romantic version)

    @echo off

    color 0a

    :1

    pause

    timeout 10

    start https://youtu.be/fY4mL6C6HZg

    (this is my count down timer)

    @echo off
    :this is merrick smyths timer:
    title timer by merrick smyth
    color 2b
    :a
    echo enter number for count down (1-10)

    set /p timer=

    if %timer% == 1 goto 1 sec
    if %timer% == 2 goto 2 sec
    if %timer% == 3 goto 3 sec
    if %timer% == 4 goto 4 sec
    if %timer% == 5 goto 5 sec
    if %timer% == 6 goto 6 sec
    if %timer% == 7 goto 7 sec
    if %timer% == 8 goto 8 sec
    if %timer% == 9 goto 9 sec
    if %timer% == 10 goto 10 sec

    :1
    color f2
    cls
    echo 0
    ping localhost -n 2 >nul
    cls
    goto :a

    :2
    color f9
    cls
    echo 1
    ping localhost -n 2 >nul
    cls
    goto :a

    :3
    color f4
    cls
    echo 2
    ping localhost -n 2 >nul
    cls
    echo 1
    ping localhost -n 2 >nul
    cls
    goto :a


    :4
    color 0e
    cls
    echo 3
    ping localhost -n 2 >nul
    cls
    echo 2
    ping localhost -n 2 >nul
    cls
    echo 1
    ping localhost -n 2 >nul
    cls
    goto :a

    :5
    color fb
    cls
    echo 4
    ping localhost -n 2 >nul
    cls
    echo 3
    ping localhost -n 2 >nul
    cls
    echo 2
    ping localhost -n 2 >nul
    cls
    echo 1
    ping localhost -n 2 >nul
    cls
    goto :a

    :6
    color f5
    cls
    echo 5
    ping localhost -n 2 >nul
    cls
    echo 4
    ping localhost -n 2 >nul
    cls
    echo 3
    ping localhost -n 2 >nul
    cls
    echo 2
    ping localhost -n 2 >nul
    cls
    echo 1
    ping localhost -n 2 >nul
    cls
    goto :a

    :7
    color 0f
    cls
    echo 6
    ping localhost -n 2 >nul
    cls
    echo 5
    ping localhost -n 2 >nul
    cls
    echo 4
    ping localhost -n 2 >nul
    cls
    echo 3
    ping localhost -n 2 >nul
    cls
    echo 2
    ping localhost -n 2 >nul
    cls
    echo 1
    ping localhost -n 2 >nul
    cls
    goto :a

    :8
    color 05
    cls
    echo 7
    ping localhost -n 2 >nul
    cls
    echo 6
    ping localhost -n 2 >nul
    cls
    echo 5
    ping localhost -n 2 >nul
    cls
    echo 4
    ping localhost -n 2 >nul
    cls
    echo 3
    ping localhost -n 2 >nul
    cls
    echo 2
    ping localhost -n 2 >nul
    cls
    echo 1
    ping localhost -n 2 >nul
    cls
    goto :a

    :9
    color 84
    cls
    echo 8
    ping localhost -n 2 >nul
    cls
    echo 7
    ping localhost -n 2 >nul
    cls
    echo 6
    ping localhost -n 2 >nul
    cls
    echo 5
    ping localhost -n 2 >nul
    cls
    echo 4
    ping localhost -n 2 >nul
    cls
    echo 3
    ping localhost -n 2 >nul
    cls
    echo 2
    ping localhost -n 2 >nul
    cls
    echo 1
    ping localhost -n 2 >nul
    cls
    goto :a

    :10
    color fd
    cls
    echo 9
    ping localhost -n 2 >nul
    cls
    echo 8
    ping localhost -n 2 >nul
    cls
    echo 7
    ping localhost -n 2 >nul
    cls
    echo 6
    ping localhost -n 2 >nul
    cls
    echo 5
    ping localhost -n 2 >nul
    cls
    echo 4
    ping localhost -n 2 >nul
    cls
    echo 3
    ping localhost -n 2 >nul
    cls
    echo 2
    ping localhost -n 2 >nul
    cls
    echo 1
    ping localhost -n 2 >nul
    cls
    goto :a

    Hi I recently finished making a timer file that I found helpful. Here it is.

    @echo off

    mode con: lines=5 cols=35

    title Timer

    :start

    color fc

    cls

    set var=

    set /p var= please set your amount of time:

    goto A

    :A

    cls

    choice /d y /t %var% > nul

    echo Times up.

    color 1c

    choice /d y /t 1 > nul

    echo Thank you for using this software

    choice /d y /t 1 > nul

    echo By Elijah Terrell

    choice /d y /t 1 > nul

    set start=

    set /p start= Type 1)to Reset 2)to exit:

    if '%start%'=='1' goto start

    if '%start%'=='2' exit

    then just save it in notepad as Timer.bat

    about a year later.... 10000+ views. Thank you to all viewers of my instructables!

    This will accept a user input for time. You can also insert a few beeps when it's finished timing. The character won't paste here. Google 'beep in batch'.

    @title Timer
    @echo off
    color fc
    :1
    set /p time=Enter time in seconds:
    timeout %time%
    goto 1