vbs没有GUI,只有两种弹出窗口,msgbox和inputbox,下面给出msgbox的各种情况,自己运行看实际结果,看哪种能过满足你的要求:
a=msgbox("Click yes for continue or no for exit!",vbYesNo,"information")
a=msgbox("Click yes for continue or no for exit!",vbOKOnly,"information")
a=msgbox("Click yes for continue or no for exit!",vbOKCancel,"information")
a=msgbox("Click yes for continue or no for exit!",vbAbortRetryIgnore,"information")
a=msgbox("Click yes for continue or no for exit!",vbYesNoCancel,"information")
a=msgbox("Click yes for continue or no for exit!",vbRetryCancel,"information")
a=msgbox("Click yes for continue or no for exit!",4,"information")
a=msgbox("Click yes for continue or no for exit!",0,"information")
a=msgbox("Click yes for continue or no for exit!",1,"information")
a=msgbox("Click yes for continue or no for exit!",2,"information")
a=msgbox("Click yes for continue or no for exit!",3,"information")
a=msgbox("Click yes for continue or no for exit!",5,"information")
a=msgbox("Click yes for continue or no for exit!",16,"Critical")
a=msgbox("Click yes for continue or no for exit!",0,"Question")
a=msgbox("Click yes for continue or no for exit!",0,"Exclamation")
a=msgbox("Click yes for continue or no for exit!",0,"information")
调用ie可解
Set a=CreateObject("WScript.shell")
set ie=wscript.createobject("internetexplorer.application","event_")
ie.menubar=0
ie.addressbar=0
ie.toolbar=0
ie.statusbar=0
ie.width=400
ie.height=500
ie.resizable=0
ie.navigate "about:blank"
ie.left=fix((ie.document.parentwindow.screen.availwidth-ie.width)/2)
ie.top=fix((ie.document.parentwindow.screen.availheight-ie.height)/2)
ie.visible=1
with ie.document
.write "
魔:快捷小工具
"这个VBS是没办法办到的,用VB的话应该是可以的。
你所说的自定义是什么意思?是MSGBOX 窗口上的按钮吗?