Task Scheduler - Create Task to Display a Message Reminder

Page 3 of 5 FirstFirst 12345 LastLast

  1. Posts : 72,045
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #20

    You're most welcome Phil. :)
      My Computer


  2. Posts : 3
    Windows 7 64bit home premium
       #21

    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 Computer


  3. Posts : 72,045
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #22

    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 Computer


  4. Posts : 3
    Windows 7 64bit home premium
       #23

    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 Computer


  5. Posts : 72,045
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #24

    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 Computer


  6. Posts : 3
    Windows 7 64bit home premium
       #25

    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 Computer


  7. Posts : 72,045
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #26

    That's great news gsher. Thank you for posting back with your results. :)
      My Computer


  8. Posts : 2
    Pennsylvania
       #27

    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 Computer


  9. Posts : 72,045
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #28

    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 Computer


  10. Posts : 2
    Pennsylvania
       #29

    That's a bummer. Thank you very much for looking into it, though!
      My Computer


 
Page 3 of 5 FirstFirst 12345 LastLast

  Related Discussions
Our Sites
Site Links
About 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 09:13.
Find Us