首页 > 其他 > 详细

右下角显示提示窗口

时间:2014-06-27 12:55:01      阅读:413      评论:0      收藏:0      [点我收藏+]

$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://www.cnblogs.com/dreamer-fish/p/3810656.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!