Health Reminder

Introduction: Health Reminder

About: The World's Biggest Show and Tell

Do you remember "Sitting is bad for you" post from Instructables blog?

That told us we shouldn't sit for a long time. We should have a break after a few sitting on a chair.

It's many hours I am sitting on a chair to work with PC, and I know it's not good.

But who can told me "Hey, It's time to break!" ?

Maybe "Health Reminder"!


Health reminder is a simple script that warn with a message box, when you should have a break.

That will help you to have a healthy body and intercept long sitting times!

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Scripting

  1. Open Notepad
  2. Copy (Ctrl+C) and Paste (Ctrl+V) below code in the editor:

do
wscript.sleep 1800000
x=msgbox ("Hey, It's time to break!" ,64, "Health Reminder")
loop


Explanation:

Above code, wrote with VBScript language.
Below, I will explain what we saw there: 

Line1: Start a ring of orders (do)

Line2: Wait for 30 minutes (30 minutes is 1800000 Milliseconds. you can use Windows calculator to convert amounts.)

Line3: After that, show me a message box with "Hey, It's time to break!" content and "Health Reminder" title. 64 is the message box type. For more info about message types, check out here.)

Line4: Repeat this process

Step 2: Save

  1. Go to File>Save (or press Ctrl+S)
  2. Choose a name for the file and add ".vbs" in end of that. e.g: EXAMPLE.vbs
  3. Choose a location & Click Save.
Now each time you click on the script, the process will start.

Step 3: Change Icon

(Optional)
  1. Right click on the file and select "Create shortcut"
  2. In the new opened window, click on "Change Icon..." button.
  3. Choose your favorite icon. Note. You can only choose icons with .ico format type. You can use ConvertIcon to convert an image to.ico format.

Step 4: Tips & Tricks

  • How to stop this script?
  1. Press Alt+Ctrl+Delete.
  2. Click on "Start Task manager"
  3. choose "Processes".
  4. Find "wscript.exe"
  5. Click on "End process"
  • How to make this script auto-run, when Windows is starting?
  1. Press "Windows" button.
  2. Click on "All Programs".
  3. Find Startup in list.
  4. Open up it and copy-paste the script shortcut into the folder.
Fitness Challenge

Participated in the
Fitness Challenge

Be the First to Share

    Recommendations

    • Backyard Contest

      Backyard Contest
    • Silly Hats Speed Challenge

      Silly Hats Speed Challenge
    • Finish It Already Speed Challenge

      Finish It Already Speed Challenge

    5 Discussions

    0
    vishalapr
    vishalapr

    8 years ago on Introduction

    Really cool! How did you change the font of the writing?!

    0
    Dream Dragon
    Dream Dragon

    8 years ago on Introduction

    Thank you for posting a USEFUL script, it's nice to see that VB can be used for something more interesting than stupid "pranks"