Can Task Scheduler trigger upon Action Center notifications?


  1. Posts : 6
    Windows 10
       #1

    Can Task Scheduler trigger upon Action Center notifications?


    Hello! Is it possible to set up Task Scheduler to run a command when the Action Center gets a new notification? Thanks!
      My Computer

  2. dalchina's Avatar
    Posts : 33,060
    Win 10 Pro (1903) (2nd PC is 21H1)
       #2

    It can trigger on events.. so if one corresponds to the notification being generated.. but that may be unlikely.

    There are quite technical ways of triggering tasks- not easy to use though. E.g.
    Can Task Scheduler trigger upon Action Center notifications?-untitled.png

    It may be that using Autohotkey (free scripting language capable of interacting with windows) to monitor for the occurence of such a notification may be possible.
      My Computers


  3. Posts : 6
    Windows 10
    Thread Starter
       #3

    dalchina said:
    It can trigger on events.. so if one corresponds to the notification being generated.. but that may be unlikely.

    There are quite technical ways of triggering tasks- not easy to use though. E.g.
    Can Task Scheduler trigger upon Action Center notifications?-untitled.png

    It may be that using Autohotkey (free scripting language capable of interacting with windows) to monitor for the occurence of such a notification may be possible.
    Thanks for the reply! I don't know much about testing for events, and I also don't know about Autohotkey. If I started learning about one, which would you say is likely easier? Again, thanks!
      My Computer

  4. dalchina's Avatar
    Posts : 33,060
    Win 10 Pro (1903) (2nd PC is 21H1)
       #4

    Autohotkey is extremely well documented, good forum; you can write a 1 line 'script' in text and run it to see what happens, and there's per line syntax checking.

    However, I can't be certain it could be successfully used to detect a notification- it can detect the presence of a window based on all manner of criteria, so for example it might be possible to detect a notification popup.

    That does seem a bit of a crude way to do that, but perhaps the only possible way that comes to mind.

    Otherwise, you have to do some research to find out what if any event at all is triggered by a particular notification. The scheduler allows triggering from many logs and sources- more than I've shown- and these are not at all obvious. For example one I've used is to trigger an action on resuming from sleep or hibernation.
      My Computers


  5. Posts : 6
    Windows 10
    Thread Starter
       #5

    dalchina said:
    Autohotkey is extremely well documented, good forum; you can write a 1 line 'script' in text and run it to see what happens, and there's per line syntax checking.

    However, I can't be certain it could be successfully used to detect a notification- it can detect the presence of a window based on all manner of criteria, so for example it might be possible to detect a notification popup.

    That does seem a bit of a crude way to do that, but perhaps the only possible way that comes to mind.

    Otherwise, you have to do some research to find out what if any event at all is triggered by a particular notification. The scheduler allows triggering from many logs and sources- more than I've shown- and these are not at all obvious. For example one I've used is to trigger an action on resuming from sleep or hibernation.
    Thanks for the info! Is there a place you could point me to in which I could do research on the various events? If not, I'll probably go with AutoHotkey.
      My Computer

  6. dalchina's Avatar
    Posts : 33,060
    Win 10 Pro (1903) (2nd PC is 21H1)
       #6

    No, sorry; I just kept searching for info when I wanted to find out if the trigger I wanted was possible- I was lucky. To be honest, in your case I wouldn't know what event you'd be looking for- your best hope would be that the event log records somehting corresponding to a notification you're interested in.. but the event log is only one possible source for trigger as you will see if you explore the relevant task scheduler drop-downs.
      My Computers



  7. Posts : 6
    Windows 10
    Thread Starter
       #7

    dalchina said:
    No, sorry; I just kept searching for info when I wanted to find out if the trigger I wanted was possible- I was lucky. To be honest, in your case I wouldn't know what event you'd be looking for- your best hope would be that the event log records somehting corresponding to a notification you're interested in.. but the event log is only one possible source for trigger as you will see if you explore the relevant task scheduler drop-downs.
    In that case, I'll give AutoHotkey a try. Thanks for letting me know!
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:35.
Find Us




Windows 10 Forums