Skip to content

Instantly share code, notes, and snippets.

@talatham
Created June 13, 2013 09:57
Show Gist options
  • Save talatham/5772591 to your computer and use it in GitHub Desktop.
Save talatham/5772591 to your computer and use it in GitHub Desktop.
Show balloon tip.
[system.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms') | Out-Null
$balloon = New-Object System.Windows.Forms.NotifyIcon
$path = Get-Process -id $pid | Select-Object -ExpandProperty Path
$icon = [System.Drawing.Icon]::ExtractAssociatedIcon($path)
$balloon.Icon = $icon
$balloon.BalloonTipIcon = 'Info'
$balloon.BalloonTipText = 'Completed Operation'
$balloon.BalloonTipTitle = 'Done'
$balloon.Visible = $true
$balloon.ShowBalloonTip(10000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment