码迷,mamicode.com
首页 > 其他好文 > 详细

右下角显示提示窗口

时间:2014-06-27 12:54:43      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:http   ext   get   art   os   html   

$title=“title”
$message="hello,world"
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
$balloon = New-Object System.Windows.Forms.NotifyIcon
$psProcPath = Get-Process -id $pid | Select-Object -ExpandProperty Path
$balloon.Icon = [System.Drawing.Icon]::ExtractAssociatedIcon( $psProcPath )
$balloon.BalloonTipIcon = ‘Info‘
$balloon.BalloonTipText = $message
$balloon.BalloonTipTitle = $title
$balloon.Visible = $true
$balloon.ShowBalloonTip(10000)
sleep -Seconds 3
$balloon.Dispose()

 

参考:http://www.pstips.net/powershell-show-weather-info.html

右下角显示提示窗口,布布扣,bubuko.com

右下角显示提示窗口

标签:http   ext   get   art   os   html   

原文地址:http://www.cnblogs.com/dreamer-fish/p/3810656.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!