on-internet
← Community

Toast notification disappears after few seconds, how to hold until taking any action on display?

Stack Overflow ·

I'm trying to make a small PowerShell program to display a toast notification after log on. I'd like the custom toast notification will stay there until user closes it. But but it disappears quickly. (about 5 seconds) How can I do that ? Script: Import-Module BurntToast $button = New-BTButton -Dismiss -Content "OK" New-BurntToastNotification -Text 'Yoooo, this is a toast notification... from PowerShell!' -Button $button

Comments

Sign in or sign up to comment and upvote.

No comments yet.