Task Scheduler - run program on wake

Page 2 of 2 FirstFirst 12

  1. Posts : 450
    Windows 7
       #11

    The message should be the easy part. You can click on the HISTORY tab of your opened (via properties) Task and see when it ran, what errors, etc.

    So, you are home-free at this point.
      My Computer


  2. Posts : 4,049
    W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, W10 Pro 1703 VM, #All 64 bit
       #12

    JimLewandowski said:
    The message should be the easy part. You can click on the HISTORY tab of your opened (via properties) Task and see when it ran, what errors, etc.

    So, you are home-free at this point.
    I meant getting Task Scheduler to display a message on the Desktop.
    I thought that "show a message" meant display a Windows Dialog box on the Desktop.

    I created a task, which was supposed to display a message at a certain time.
    It never displayed a message.
    I added a sound alert (IrfanView) to that task.
    The sound played, but the message didn't appear.

    I guess I could have made it display a txt file (Notepad) or a picture (IrfanView).
      My Computer


  3. Posts : 450
    Windows 7
       #13

    I thought you could only do ONE of the following:

    Create message
    Send an email
    Start a program

    The messsage, if it works, will be a regular windows popup window with the only button to click OK with the message text above it.

    I've done the message before as I have a popup that shows up any time I connect a removable drive to my desktop.
      My Computer


  4. Posts : 4,049
    W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, W10 Pro 1703 VM, #All 64 bit
       #14

    That's what I was expecting ...


    JimLewandowski said:
    I thought you could only do ONE of the following:

    Create message
    Send an email
    Start a program

    The messsage, if it works, will be a regular windows popup window with the only button to click OK with the message text above it.

    I've done the message before as I have a popup that shows up any time I connect a removable drive to my desktop.
    That's what I was expecting, but I couldn't make it work.

    I was only trying to do it, to troubleshoot a problem I was having.
    I was unaware that Windows automatically turned itself off after 2 minutes (if activated by an unattended task).

    I wanted my machine to wake up and perform an AV scan (4:00 am).
    I set:

    • The task time (3:45 am)
    • The Program Update time to 5 minutes later (3:50 am)
    • The Virus Database update time to 5 minutes after that (3:55 am).
    • The AV scan time to 5 minutes after that (4:00 am).

    Of course none of the AV steps started.

    I thought that if I got it to display a message, I would see the Dialog box on my Desktop (which would confirm that the task had started).
    That never worked.

    I then tried setting a task to display a message (in a few minutes, whilst I watched).
    No message ever appeared.

    I then included a sound (IrfanView).
    The sound worked!

    Brink sorted it out my original problem for me.
    So I never bothered to try to figure out what was happening.
      My Computer


  5. Posts : 450
    Windows 7
       #15

    I was expecting you to set NO time on any of these tasks as they would simply be triggered from the EVENT ID 1 event.
      My Computer


  6. Posts : 4,049
    W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, W10 Pro 1703 VM, #All 64 bit
       #16

    My bad.


    JimLewandowski said:
    I was expecting you to set NO time on any of these tasks as they would simply be triggered from the EVENT ID 1 event.
    My bad.
    Ancient history (that happened last year).

    Since Brink solved my original dilemma, I didn't bothered to look into the message mystery.
      My Computer


  7. Posts : 339
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #17

    JimLewandowski said:
    FWIW, I think Task Scheduler is the most valuable thing around in Windows.

    Pull up Event Viewer (Control Panel -> Administrative Tools -> Event Viewer) and select (LH side) caret by SYSTEM LOGS. Then select SYSTEM.

    Scroll and find the time when your PC just woke up from sleep. The event ID will be 1 and source column will be Power-Troubleshooter.

    Highlight that and then right-click and select Attach task to this event. Then do your thing by setting up all the applet panels.

    Here's mine (using the COPY tile from the lower pane):

    Log Name: System
    Source: Microsoft-Windows-Power-Troubleshooter
    Date: 12/28/2011 8:31:26 PM
    Event ID: 1
    Task Category: None
    Level: Information
    Keywords:
    User: LOCAL SERVICE
    Computer: Jim-GLH
    Description:
    The system has resumed from sleep.
    Sleep Time: ‎2011‎-‎12‎-‎28T23:36:50.608543500Z
    Wake Time: ‎2011‎-‎12‎-‎29T01:31:18.170801200Z
    Wake Source: Unknown


    Test by simply issuing a MESSAGE when that event occurs (will present a popup window for you of text).
    What could you add to the message pop-up to close it, say, in 2 seconds if the point is just to wake the computer?
      My Computer


 
Page 2 of 2 FirstFirst 12

  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 10:43.
Find Us