Skip to content

Instantly share code, notes, and snippets.

@Windos
Created July 13, 2020 20:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Windos/37e08f3b12d11b4aac76a3ab100678b2 to your computer and use it in GitHub Desktop.
Save Windos/37e08f3b12d11b4aac76a3ab100678b2 to your computer and use it in GitHub Desktop.
# Install-Module BurntToast
$Text1 = New-BTText -Content 'Help!'
$Text2 = New-BTText -Content "Please send help."
$Audio1 = New-BTAudio -Source 'ms-winsoundevent:Notification.Mail'
# Point the source at a gif that exists...
$HeroImage = New-BTImage -Source 'C:\Temp\Help.gif' -HeroImage
$Binding1 = New-BTBinding -Children $Text1, $Text2 -AppLogoOverride $Image1 -HeroImage $HeroImage
$Visual1 = New-BTVisual -BindingGeneric $Binding1
$Content1 = New-BTContent -Visual $Visual1 -Audio $Audio1 -Duration Long
Submit-BTNotification -Content $Content1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment