Created
June 13, 2013 09:57
-
-
Save talatham/5772591 to your computer and use it in GitHub Desktop.
Show balloon tip.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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