一个“我是猪”的VB程序改编问题

如题:onerrorresumenextdimWSHshellAsetWSHshellA=wscript.createobject("wscript.shell")WSH... 如题:
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -s -t 30 -c ""说我是猪,不说我是猪就一分钟关你机,不信,试试·

··"" ",0 ,true
dim a
do while(a <> "我是猪")
a = inputbox ("说我是猪,就不关机,快撒,说 ""我是猪"" ","说不说","不说",8000,7000)
msgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"
loop
msgbox chr(13) + chr(13) + chr(13) + "早说就行了嘛"
do while(b <> "哥哥")
b = inputbox ("再叫声哥哥听听!不叫一样关你机!快撒!说""哥哥"" ","说不说","不说",8000,7000)
msgbox chr(13) + chr(13) + chr(13) + b,0,"MsgBox"
loop
msgbox chr(13) + chr(13) + chr(13) + "恩恩!不错真乖!就饶了你吧"
do while(c <> "听")
c = inputbox ("慢着!我隔壁某某说要你等哈,他说他要念首诗你听,你自己看着办吧!看你是""听"" ","听不听

","不听",8000,7000)
msgbox chr(13) + chr(13) + chr(13) + c,0,"MsgBox"
loop
msgbox chr(13) + chr(13) + chr(13) + "从前有座山."
msgbox chr(13) + chr(13) + chr(13) + "山里有个庙."
msgbox chr(13) + chr(13) + chr(13) + "庙里有老和尚."
msgbox chr(13) + chr(13) + chr(13) + "再来一次..."
msgbox chr(13) + chr(13) + chr(13) + "从前有座山!"
msgbox chr(13) + chr(13) + chr(13) + "山里有个庙!"
msgbox chr(13) + chr(13) + chr(13) + "庙里有个老和尚!"
msgbox chr(13) + chr(13) + chr(13) + "从前有座山."
msgbox chr(13) + chr(13) + chr(13) + "山里有个庙."
msgbox chr(13) + chr(13) + chr(13) + "庙里有老和尚."
msgbox chr(13) + chr(13) + chr(13) + "再来一次..."
msgbox chr(13) + chr(13) + chr(13) + "从前有座山!"
msgbox chr(13) + chr(13) + chr(13) + "山里有个庙!"
msgbox chr(13) + chr(13) + chr(13) + "庙里有个老和尚!"
msgbox chr(13) + chr(13) + chr(13) + "最后一次!"
msgbox chr(13) + chr(13) + chr(13) + "如果你很快的点过去,不看的话"
msgbox chr(13) + chr(13) + chr(13) + "我就要你踩我空间的!哼!"
msgbox chr(13) + chr(13) + chr(13) + "从前有座山!"
msgbox chr(13) + chr(13) + chr(13) + "山里有个庙."
msgbox chr(13) + chr(13) + chr(13) + "庙里有个老和尚在讲故事."
dim WSHshell
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a",0 ,true
msgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,真过瘾"
这是我自己改写的! 我想在msgbox chr(13) + chr(13) + chr(13) + "庙里有个老和尚在讲故事."后面加上一个打开网页的命令,但是加上去却整个VB不成立了。 怎么改啊!~?
展开
 我来答
gujin170
2008-08-10 · TA获得超过937个赞
知道小有建树答主
回答量:1030
采纳率:66%
帮助的人:342万
展开全部
On Error Resume Next
Dim WSHshellA
Set WSHshellA = wscript.CreateObject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -s -t 30 -c ""说我是猪,不说我是猪就一分钟关你机,不信,试试· "

··"" ",0 ,true
Dim a
Do While (a <> "我是猪")
a = InputBox("说我是猪,就不关机,快撒,说 ""我是猪"" ", "说不说", "不说", 8000, 7000)
MsgBox Chr(13) + Chr(13) + Chr(13) + a, 0, "MsgBox"
Loop
MsgBox Chr(13) + Chr(13) + Chr(13) + "早说就行了嘛"
Do While (b <> "哥哥")
b = InputBox("再叫声哥哥听听!不叫一样关你机!快撒!说""哥哥"" ", "说不说", "不说", 8000, 7000)
MsgBox Chr(13) + Chr(13) + Chr(13) + b, 0, "MsgBox"
Loop
MsgBox Chr(13) + Chr(13) + Chr(13) + "恩恩!不错真乖!就饶了你吧"
Do While (c <> "听")
c = inputbox ("慢着!我隔壁某某说要你等哈,他说他要念首诗你听,你自己看着办吧!看你是""听"" ","听不听

","不听",8000,7000)
MsgBox Chr(13) + Chr(13) + Chr(13) + c, 0, "MsgBox"
Loop
MsgBox Chr(13) + Chr(13) + Chr(13) + "从前有座山."
MsgBox Chr(13) + Chr(13) + Chr(13) + "山里有个庙."
MsgBox Chr(13) + Chr(13) + Chr(13) + "庙里有老和尚."
MsgBox Chr(13) + Chr(13) + Chr(13) + "再来一次..."
MsgBox Chr(13) + Chr(13) + Chr(13) + "从前有座山!"
MsgBox Chr(13) + Chr(13) + Chr(13) + "山里有个庙!"
MsgBox Chr(13) + Chr(13) + Chr(13) + "庙里有个老和尚!"
MsgBox Chr(13) + Chr(13) + Chr(13) + "从前有座山."
MsgBox Chr(13) + Chr(13) + Chr(13) + "山里有个庙."
MsgBox Chr(13) + Chr(13) + Chr(13) + "庙里有老和尚."
MsgBox Chr(13) + Chr(13) + Chr(13) + "再来一次..."
MsgBox Chr(13) + Chr(13) + Chr(13) + "从前有座山!"
MsgBox Chr(13) + Chr(13) + Chr(13) + "山里有个庙!"
MsgBox Chr(13) + Chr(13) + Chr(13) + "庙里有个老和尚!"
MsgBox Chr(13) + Chr(13) + Chr(13) + "最后一次!"
MsgBox Chr(13) + Chr(13) + Chr(13) + "如果你很快的点过去,不看的话"
MsgBox Chr(13) + Chr(13) + Chr(13) + "我就要你踩我空间的!哼!"
MsgBox Chr(13) + Chr(13) + Chr(13) + "从前有座山!"
MsgBox Chr(13) + Chr(13) + Chr(13) + "山里有个庙."
MsgBox Chr(13) + Chr(13) + Chr(13) + "庙里有个老和尚在讲故事."
Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE www.baidu.com"
Dim WSHshell
Set WSHshell = wscript.CreateObject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a", 0, True
MsgBox Chr(13) + Chr(13) + Chr(13) + "哈哈哈哈,真过瘾"
yuluyan11
2008-08-18
知道答主
回答量:16
采纳率:0%
帮助的人:0
展开全部
加上
shell("explorer.exe http://www.baidu.com/")'换成你要的网页
就可以了
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
手机用户74271
2008-08-15
知道答主
回答量:1
采纳率:0%
帮助的人:0
展开全部
你是笨猪
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
百度网友04e30f5a9
2008-08-19
知道答主
回答量:56
采纳率:0%
帮助的人:0
展开全部
pig
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(2)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式