Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-BurnToast #62

Closed
tedkol opened this issue Feb 23, 2019 · 12 comments
Closed

Get-BurnToast #62

tedkol opened this issue Feb 23, 2019 · 12 comments
Assignees
Projects

Comments

@tedkol
Copy link

tedkol commented Feb 23, 2019

Feature Request:

Get-BurntToastNotification - retrieve all notifications from the notification center.

@Windos
Copy link
Owner

Windos commented Feb 23, 2019

Sounds like a good idea, I'll see what I can do

@Windos Windos self-assigned this Feb 23, 2019
@Windos Windos added this to To do in v0.7.0 Feb 23, 2019
@Windos
Copy link
Owner

Windos commented Feb 25, 2019

Here's what I've found I can do:

List all notifications from a given AppId (generally all of the toasts from this module will be under the same banner.)

Clear all notifications from a given AppId

Clear a specific toast (based on unique identifier)

All looks good and will be in the next release! Thanks again for the suggestion

@jwood79
Copy link

jwood79 commented Mar 21, 2019

I like this feature.

I will be creating a notification every 30 minutes if a PC needs a reboot and it would be great if before iT created one, it checks to see if one is already there and closes it. That way there will not be a lot of notifications sitting there.

@Windos Windos moved this from To do to Done in v0.7.0 Mar 26, 2019
@Windos
Copy link
Owner

Windos commented Mar 26, 2019

v0.7.0 will have functions for getting, and clearing toasts:

Get-BTHistory
Remove-BTNotification

These are feature complete, but need comment based help. Regardless, keep an eye out for the next release... soon(tm)

@Windos Windos closed this as completed Mar 26, 2019
@AmineI
Copy link

AmineI commented Mar 26, 2019

Does Get-BTHistory also gets the notification's text/content ? That would allow, along with -UniqueIdentifier to manually add information to a toast :)

@Windos
Copy link
Owner

Windos commented Mar 26, 2019 via email

@AmineI
Copy link

AmineI commented Mar 26, 2019

Just noticed my comment didn't really make sense, It's a bit late here so forgive me about that - I meant manually *updating a toast's text - I could parse the previous toast in my script using its known identifier, and recreate it with an additional info in the text for example, which could be a manual solution to #54

@Windos
Copy link
Owner

Windos commented Mar 27, 2019 via email

@AmineI
Copy link

AmineI commented Apr 16, 2019

Any way to get the binded text :/ ?
image

(The use case is that I'm looking to update a previously built toast by appending information to it, instead of replacing it)

@Windos
Copy link
Owner

Windos commented Apr 16, 2019

Absolutely, one of the properties surfaced with Get-BTHistory includes the notification data, that stores that binding values:

image

You'd need to pull these out and use them to build up a new hashtable for the update, but it'll let you know what was originally there.

@AmineI
Copy link

AmineI commented Apr 16, 2019

Ah, thanks ! I was actually looking in Content instead of Data, and couldn't figure out what was wrong.

@Windos
Copy link
Owner

Windos commented Apr 16, 2019

Yeah, unfortunately that content isn't the "compiled" end result (something I didn't realise I wish was a thing until now)... it'll include placeholders for the bindings in curly braces (e.g. "{FirstLine}") but it's up to the Windows API to smush that and the NotificationData together when displaying the notification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v0.7.0
  
Done
Development

No branches or pull requests

4 participants