Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Task Scheduler - Create Task to Display a Message Reminder

11 Oct 2012   #20
Brink

64-bit Windows 10 Pro
 
 

You're most welcome Phil.


My System SpecsSystem Spec
.
20 Nov 2012   #21
gsher101

Windows 7 64bit home premium
 
 

Thanks, great article, and great help dwarf.

However still have problems. Trying to give myself a reminder (using dwarf's vbs script) that after sitting at my PC for 45 minutes, to go for a walk as I have back problems. First set the trigger delay from "unlock the PC" to 45 minutes for the reminder and thereafter every minute - the problem with this is that if I lock my laptop (put to sleep) after 40 minutes, 5 minutes after unlocking, I get my reminder. If I have locked the PC after 45 minutes, then when unlock get the reminder 1 minute later and each minute thereafter. In Task scheduler settings, I specify that when a new instance of the program runs (this happens each time coming out of locked state) to stop the existing instance. However this does not help as the instance is not running when this happens, but is called only 45 mins later.

Then tried putting the 45 min sleep command in the vbs script with the 1 minute reminders (the script being called immediately coming out of locked state). Problem is that when come out of locked state the old instance is not actually stopped even though the task scheduler says it has. Is there a way I can force this to happen?

How can I tell the scheduler (or vbs script) to stop the instance when the laptop is locked? Any suggestions of other ways of solving this?
My System SpecsSystem Spec
20 Nov 2012   #22
Brink

64-bit Windows 10 Pro
 
 

Hello gsher, and welcome to Seven Forums.

You might set it log you off instead with the log off command having a timer of it's own to warn you before doing so. This way you will have time to save what you working on first.

Log Off Shortcut - Create

Hope this helps,
Shawn
My System SpecsSystem Spec
20 Nov 2012   #23
gsher101

Windows 7 64bit home premium
 
 

Thanks for the reply Shawn, not wanting to logout as often I am in the middle of things, so want a 5 minute break for my back's sake and then want to pick up where I left off. Also wanted the continuous reminder (1 per minute) because then I will rather get up than finish (which never happens) what I am doing. That is why locking the laptop is my best option - is there a way that the scheduler can kill a vbs script (the stop an existing instance does not work - not sure why as the scheduler says it worked, but clearly the vbs script is still running)?
My System SpecsSystem Spec
.

20 Nov 2012   #24
Brink

64-bit Windows 10 Pro
 
 

Actually it's the time that is still being monitored by the task. The vbs file is just a one shot run then stops. As long as you are logged in, the task will continue to monitor the time and run the task as set by the time frame.

You might see if an alarm clock type program may work best for this instead. Here are a couple of frees ones to try if you like.

Free Alarm Clock for Windows

myfreealarmclock.com | Absolutetly Free Alarm Clock Download
My System SpecsSystem Spec
24 Nov 2012   #25
gsher101

Windows 7 64bit home premium
 
 

Thanks Shawn for the tip, went and had a good look at the alarms, installed about 10 different ones, but none actually was exactly what I wanted. I seem to have the solution, been running it for 3 days now. On Logon (or unlock), a the taskscheduler immediately runs taskkill.exe /im wscript.exe /f (this kills any vbs scripts running at this time - I have no others running). The 1 minute after unlock, taskscheduler calls my stretchlegs vbs script, which esssentially sleeps for 45 minutes before it wakes up and sends a reminder every 1 minute thereafter. Not an elegant solution, but it is working. Here is the vbs script:

WScript.Sleep 2700000
Do Until i=10
MsgBox "Time to give your body a rest, you have been at the computer for more than 45 minutes - to stop this message, put your computer to sleep or logoff", vbSystemModal, "Break Time"
WScript.Sleep 60000
Loop
My System SpecsSystem Spec
24 Nov 2012   #26
Brink

64-bit Windows 10 Pro
 
 

That's great news gsher. Thank you for posting back with your results.
My System SpecsSystem Spec
24 Jul 2013   #27
rjm328

Pennsylvania
 
 

I'm not sure if this thread is still being monitored, but I have a question about customizing the VBS code.

I have been able to enter the following code...:

MsgBox "Don't forget to create yourself an example message today at SevenForums.com", vbSystemModal

...into Task Scheduler to get the pop-up reminders to appear on the top of whatever programs I have running. That alone has been HUGELY helpful - thank you!

My question is this: The pop-up is currently very small and not very noticeable if you're not currently looking at the computer screen. I need to make the window colored, window huge, and text large and colored - it needs to really scream "LOOK AT ME!!!" to whomever is using the computer and to draw their attention to the message. Can you please format the above code to make the pop-up's font YELLOW, font RED, and box size 1600x1200 pixels?
My System SpecsSystem Spec
24 Jul 2013   #28
Brink

64-bit Windows 10 Pro
 
 

Hello RJM, and welcome to Seven Forums.

I'm not aware of a way to do so without the use of some unknown 3rd party reminder type program.
My System SpecsSystem Spec
24 Jul 2013   #29
rjm328

Pennsylvania
 
 

That's a bummer. Thank you very much for looking into it, though!
My System SpecsSystem Spec
Comment

 Task Scheduler - Create Task to Display a Message Reminder




Tutorial Tools Search this Tutorial
Search this Tutorial:

Advanced Search




Similar help and support threads
Windows 7 Tutorial Category
Task Scheduler : Create Shut Down PC Automatically Task
How to Create a Task that will Shut Down the PC Automatically This will show a very easy way to create a task in the Task Scheduler that will shut down the PC whenever you like. This will work for Windows 7 and Windows Vista. Let's get started! 1) In the Windows start menu search box type...
Tutorials
Task Scheduler - Create New Task
How to Create Automated Task that Runs at Set Time in Windows 7 A very handy feature within Vista, Windows Server 2008 & now Windows 7 is the Task Scheduler. This app will allow the automated running of files and programs at a user designated time. Here's How: 1. Open up Task...
Tutorials
Can't create a task in task scheduler, account unknown.
"Task scheduler cannot create the task. The user account is unknown, the password is incorrect, or the user account does not have permission to create this task." I'm getting that message. I read you needed a passworded account to create a task, so I made a new account because I didn't want a...
General Discussion
Error message in task scheduler
Does anyone know what this means and what I can do about it?
Performance & Maintenance
Task Scheduler Error Message
Not sure this is right board but this is popout I get when I open Task Scheduler and I can't info on google. An error has occurred for task RealUpgradeLogonTaskS-1-5-21-17410475-1320757554-3309179107-1000. Error message: The specified account name is not valid. Thank you for help.
General Discussion
When I open the Task Scheduler, I get an error message...
When I open Task Scheduler, I get the following error message: an error has occurred for task realupgradelogontasks-1-5-21-2172834406-3963835389-1001. error message:the specified account name is not valid. What does it mean and how do I get rid of the error message?
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:22.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App