Replies: 2 comments
-
Hey @DanPrs, unfortunately there's no way to hold a toast on screen until it is interacted with. It will end up going to the Action Center for later action by the user (though if they're anything like me they'll just click the dismiss all button 😛). We can however make the toast stay onscreen longer. Behind the scenes they use a concept call scenarios, the default one if I remember correctly is a "reminder" which is just a "ding, something happened, here's some info". You can make use of an "alarm" scenario which shows the toast for much longer... and also has a more persistent sound to them. The easiest way to do this is by choosing any of the Alarm or Call sounds on the New-BurntToastNotification -Sound Alarm5 This shows on screen for 25 seconds. If you want to really crank this up, you have to dive into the "advanced functions": $Text1 = New-BTText -Content 'Default Notification'
$ImagePath = Join-Path -Path (Get-Module BurntToast -ListAvailable).ModuleBase -ChildPath 'Images\BurntToast.png'
$Image1 = New-BTImage -Source $ImagePath -AppLogoOverride -Crop Circle
$Audio1 = New-BTAudio -Source 'ms-winsoundevent:Notification.Looping.Call9' -Loop
$Binding1 = New-BTBinding -Children $Text1 -AppLogoOverride $Image1
$Visual1 = New-BTVisual -BindingGeneric $Binding1
$Content1 = New-BTContent -Visual $Visual1 -Audio $Audio1 -Duration Long -Scenario IncomingCall
Submit-BTNotification -Content $Content1 The key here if on You'll note that with |
Beta Was this translation helpful? Give feedback.
-
Hey, Found out that if you change the registry key value of the key called MessageDuration located in HK_Current_User\Control Panel\Accessibility to a decimal of your choice, it will change the notification timing to whatever second you set as decimal. Of Course, all notifications will be affected. Cheers, |
Beta Was this translation helpful? Give feedback.
-
The message disappears rather quickly. If a user happens to look away, they might miss it entirely.
Beta Was this translation helpful? Give feedback.
All reactions