VBScript 中 Msgbox 的替代品 [英] Alternatives to Msgbox in VBScript
本文介绍了VBScript 中 Msgbox 的替代品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在基于 VBS 的登录脚本运行后显示状态信息.我可以简单地使用一个消息框,但更希望在用户登录后在时钟上方短暂显示此信息.
I want to show status information after a VBS based login script runs. I could simply use a Messagebox, but would rather have this information appear above the clock briefly after the user logs in.
我有什么替代品可以代替 Messagebox?
What alternatives do I have instead of a Messagebox?
推荐答案
您所指的是类似于气球提示的东西.VBScript 本身没有类似的功能.您需要使用第三方组件.
What you are referring to is something like a balloon tip. There is nothing like this available in VBScript natively. You would need to use a third-party component.
顺便说一句,PowerShell 能够做到这一点.
As an aside, PowerShell IS able to do this.
[reflection.assembly]::loadwithpartialname("System.Windows.Forms")
[reflection.assembly]::loadwithpartialname("System.Drawing")
$notify = new-object system.windows.forms.notifyicon
$notify.icon = [System.Drawing.SystemIcons]::Information
$notify.visible = $true
$notify.showballoontip(10,"Reboot Required","Please restart your computer",[system.windows.forms.tooltipicon]::None)
这篇关于VBScript 中 Msgbox 的替代品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文