Giter Club home page Giter Club logo

Comments (12)

AmineI avatar AmineI commented on July 17, 2024 1

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

from burnttoast.

Windos avatar Windos commented on July 17, 2024

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

from burnttoast.

Windos avatar Windos commented on July 17, 2024

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

from burnttoast.

jwood79 avatar jwood79 commented on July 17, 2024

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.

from burnttoast.

Windos avatar Windos commented on July 17, 2024

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)

from burnttoast.

AmineI avatar AmineI commented on July 17, 2024

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

from burnttoast.

Windos avatar Windos commented on July 17, 2024

from burnttoast.

AmineI avatar AmineI commented on July 17, 2024

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

from burnttoast.

Windos avatar Windos commented on July 17, 2024

from burnttoast.

AmineI avatar AmineI commented on July 17, 2024

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)

from burnttoast.

Windos avatar Windos commented on July 17, 2024

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.

from burnttoast.

Windos avatar Windos commented on July 17, 2024

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.

from burnttoast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.