Toast click action with -Appid #217
Unanswered
JerryTsaiTPE
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I try to replace the "Windows PowerShell" on top of the toast.
The way I found is to use [-Appid] to replace "Windows PowerShell" with other apps in the system. (Example: "Messaging")
When I click on the Toast(not on the button), it always pops up Messaging app. How can I change this click action to open the same hyperlink(or do nothing) and keep the Messaging app icon and title?
Or, is another way to replace the "Windows PowerShell" and the PowerShell icon?
I'm using the Win11 OS.
Thanks.
`
$Button1 = New-BTButton -Content 'CLICK HERE' -Arguments 'https://www.google.com/intl/en_us/chrome/'
$splat = @{
Text = 'Check for Chrome update', 'Sent from Jerry'
Sound = 'IM'
AppLogo = 'C:\icon\GoogleChrome.png'
Button = $Button1
}
New-BurntToastNotification @Splat -appid 'Microsoft.Messaging_8wekyb3d8bbwe!x27e26f40ye031y48a6yb130yd1f20388991ax'
`
Beta Was this translation helpful? Give feedback.
All reactions