Health Reminder
![message-box.png](/proxy/?url=https://content.instructables.com/FBV/VU4H/GPLJ2CXB/FBVVU4HGPLJ2CXB.png&filename=message-box.png)
![Health-Reminder-poster.png](/proxy/?url=https://content.instructables.com/FT3/DLM6/GPU0O90I/FT3DLM6GPU0O90I.png&filename=Health-Reminder-poster.png)
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!
Scripting
![scripting.png](/proxy/?url=https://content.instructables.com/FNS/X21G/GP7IH2DW/FNSX21GGP7IH2DW.png&filename=scripting.png)
- Open Notepad
- 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
Save
![save-format.png](/proxy/?url=https://content.instructables.com/FJU/6ENJ/GP7IH2DV/FJU6ENJGP7IH2DV.png&filename=save-format.png)
- Go to File>Save (or press Ctrl+S)
- Choose a name for the file and add ".vbs" in end of that. e.g: EXAMPLE.vbs
- Choose a location & Click Save.
Change Icon
![create-shortcut.png](/proxy/?url=https://content.instructables.com/FH1/P7OX/GPBDIBYJ/FH1P7OXGPBDIBYJ.png&filename=create-shortcut.png)
![change-icon.png](/proxy/?url=https://content.instructables.com/FVL/SUZR/GPBD5I1M/FVLSUZRGPBD5I1M.png&filename=change-icon.png)
(Optional)
- Right click on the file and select "Create shortcut"
- In the new opened window, click on "Change Icon..." button.
- 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.
Tips & Tricks
![how-to-stop.png](/proxy/?url=https://content.instructables.com/FPK/GG6Y/GP7IH2DU/FPKGG6YGP7IH2DU.png&filename=how-to-stop.png)
![autorun.jpg](/proxy/?url=https://content.instructables.com/FUQ/O8CV/GPU0O9CD/FUQO8CVGPU0O9CD.jpg&filename=autorun.jpg)
- How to stop this script?
- Press Alt+Ctrl+Delete.
- Click on "Start Task manager"
- choose "Processes".
- Find "wscript.exe"
- Click on "End process"
- How to make this script auto-run, when Windows is starting?
- Press "Windows" button.
- Click on "All Programs".
- Find Startup in list.
- Open up it and copy-paste the script shortcut into the folder.