Productivity Script Reminds You To Spend Time Wisely

Reader Robert writes in with his own excellent and ubergeeky method of staying productive—a script that pops up a reminder every so often asking whether you are spending your time wisely.

Once the script has been launched, it will ask you every 20 minutes to consider how you are spending your time, and ask you whether you want to continue—answering yes will start the timer over, otherwise the script will exit. At first glance it may sound annoying, but after using this script for a few hours I've already caught myself doing "research" on Wikipedia and goofing off on IM—this reminder is an excellent tool to keep you focused on productivity.

To install the script for your own use, open up notepad and create a new *.vbs file, and then paste in the following code. To launch the script, all you need to do is double-click on the file.

' Written by Robert Matusky ~~ ' 2009-04-05

minutes = 20 seconds = minutes * 60 milliseconds = seconds * 1000

do userContinue = msgBox ("Consider if this is really how I need to be spending my time. Continue?", vbYesNo + vbSystemModal ) yesVal = 6 if userContinue = yesVal then Wscript.sleep milliseconds end if loop While userContinue = yesVal

Robert advises to create a shortcut to the file in your Windows startup programs folder so you won't forget to launch it. You can easily customise the message or change the reminder time to something other than 20 minutes—I gave my script a more stern and personalised warning. Great job, Robert!



    hey SW how do you get it to loop regardless?
    also, do the two "1 to 5" parts have to be changed to match how many phrases you have?

    Check out StopDistractions — StopDistractions blocks access to distracting websites like Facebook, MySpace, Twitter, and Digg. You can personalize the list of blocked sites and you can set a countdown timer. StopDistractions runs on Windows XP or Vista.

Join the discussion!

Trending Stories Right Now