Comments (12)
Ah, thanks ! I was actually looking in Content
instead of Data
, and couldn't figure out what was wrong.
from burnttoast.
Sounds like a good idea, I'll see what I can do
from burnttoast.
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.
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.
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.
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.
from burnttoast.
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.
from burnttoast.
Any way to get the binded text :/ ?
(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.
Absolutely, one of the properties surfaced with Get-BTHistory
includes the notification data, that stores that binding values:
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.
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)
- Getting mixed results in mass deployment, lots of machines failing.
- [Feature Request Summary] Support for mobile notifications using notify17? HOT 1
- Toast History access and Toast removal failures on PowerShell 7.1 HOT 3
- No alert sound on multiple machines, except on the first I installed to. HOT 3
- BurntToast -AppLogo does not accept valid UNC paths to WSL locations HOT 2
- Missing documentation on the ActivatedAction parameter on Submit-BTNotification function HOT 1
- empty AppLogo as default value HOT 6
- Doc: how to enable notifications HOT 2
- Typo in Example05? HOT 1
- Toast History access failure on PowerShell 7.2.1 HOT 2
- Provide a feature to read the content of currently displayed Toast Notifications HOT 4
- [Bug]: MethodInvocationException: Exception calling "Show" with "1" argument(s): "Access is denied. HOT 1
- [Bug]: Update-BTNotification not doing its job even when verbose shows no error. HOT 5
- Replace/Remove Shipped DLLs
- Allow variable names to be displayed in the toast notification HOT 1
- character limit notification text HOT 1
- New-BurntToastNotification Button Overflow Menu HOT 1
- icon and heroImage with http-URL HOT 1
- [Bug]: Basic test script does not work HOT 5
- [Bug]: Can't set button label with New-BTButton with Update-BTNotification HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from burnttoast.