Get notifications

This topic contains 9 replies, has 3 voices, and was last updated by  Andreas Lorensen 7 months ago.

  • Author
    Posts
  • #68995

    Andreas Lorensen
    Participant

    Is there a powershell way to get the desktop notifications ?

    My quest is that a webpage is using htlm5 desktop notification, and I would like to monitor for when that happens, and play a sund and/or turn on a notification light. But first "problem" is how to get notifications from windows actioncenter.

  • #69205

    Dakota Clark
    Participant

    Are you looking to have a webpage generate a notification in PowerShell or to have PowerShell generate a notification?

    If it is to have PowerShell generate the notification there is the BurntToast module. https://github.com/Windos/BurntToast

    • #69207

      Andreas Lorensen
      Participant

      I am looking for a way to read the notifications, and act on a notification. The notifications can come from a webpage.
      I know how to get powershell to send a notification, but cant figure out how to read notifications from actioncenter.

  • #69208

    Andreas Lorensen
    Participant

    To specify what I want to do...

    I have Zendesk support system and using Zendesk Talk (a voip system using WebRTC). The problem is, that the ring sound goes to the headset, so if not wearing headset, incomming cals could be missed.
    Only way I can think of to get around this problem could be monitoring desktop notifications, and if one special notification comes (from Zendesk talk) then send a sound to the speaker or something like that.

  • #69250

    Juliën Zweverink
    Participant

    Another solution could be so set the Desktop/Laptop speakers as default Windows audio device and the headset as default Windows communication device. The Incoming Call sound be played over the speakers and the communication over the headset

    • #69256

      Andreas Lorensen
      Participant

      Yah that would be the right thing, but the Zendesk WebRTC voip phone dosnt respect that.

    • #69259

      Juliën Zweverink
      Participant

      That's too bad, perhaps a bit out of the scope of the question bud have you summited a Feature/Bug Request ?

      Would an easy to use radio button that would switch the audio from Speakers to headset be an workable workaround?

  • #69261

    Andreas Lorensen
    Participant

    Exactly – Im am working on such solution as well 🙂

    But if I could catch the desktop notification, I could do some more fun 😉 like playing a sound, make a light turn on and whatever.

    • #69262

      Juliën Zweverink
      Participant

      Next to the notification is there also an internet temp file or windows event created that could act as an reliable trigger?

    • #69291

      Andreas Lorensen
      Participant

      Nope – That would be to easy 😉

You must be logged in to reply to this topic.