Replies: 1 comment
-
Hey @fd1911! This is the only thing I've had time to write documentation wise on putting "real" actions behind buttons, Actionable Toast Notifications, Finally Cracked Them!. I've also got a video from a livestream when I worked on v0.8.0, which shows slightly newer way of doing this (supplying a ScriptBlock to $ActivatedAction on What you're going to need to work out, is which button was pressed, in my examples so far you could technically select an item from the drop down box and press anywhere on the toast (ignoring the button) and it'd work. The info about which button is pressed will be buried in the event data. In short... lots more documentation and examples are on the way. Sorry for the lack of it ATM! Specifically, I'd recommend watching PSPowerHour on 27 September @ 2 PM Pacific Time as I'll be demoing a lot of this sort of stuff there. |
Beta Was this translation helpful? Give feedback.
-
Hello there!
I've been following this module for quite a wile and unfortunately I still cannot get the hang out of it.
I've created a script with two buttons and those right now open a website, because as far as I saw until 8.0 the buttons couldn't do more than this.
This is the actual code block inside a function. (a very simple if else)
$appid = New-BTAppId -AppId 'NotificationAPP'
$image= 'C:\Scrtipt\Avatar.jpg'
$Button1 = New-BTButton -Content 'Remember submitting reports' -Arguments 'www.facebook.com'
$Button2 = New-BTButton -Content 'Reports already loaded' -Arguments 'www.twitter.com'
$alarm = 'Alarm2'
New-BurntToastNotification -applogo $image -Text 'Remember submitting reports' -Button $Button1,$Button2 -Sound $alarm
I am kinda lost in the subject of making the button call to a function in the script or even launch an app.
Can someone be gentle in letting me know how can I try this?
I've already looked into the new documentation and I didn't understood it and tried to use the SubmitBT-Notification as well the BT Action module
(Maybe my English is a little bit rusty, sorry for that.)
Anyway, thanks a lot for creating this project!
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions