yzy26353520 发表于 2012-10-3 20:50:56

请高手看下这个打开网页的代码为什么出错了??

#include<windowsconstants.au3>
#include<guiconstantsex.au3>
$main = GUICreate(" ", @desktopwidth/4,@desktopheight/3,default, default,$WS_POPUP, $WS_EX_TOOLWINDOW)
guisetfont(20)
guictrlcreatelabel("请输入你要进入的网址。",9,9)
$yes=guictrlcreatebutton("确定",10,200)
$no=GUICtrlCreateButton("取消",200,200)
$info=guictrlcreateinput("",9,90,@desktopwidth/4-19,49)
guisetbkcolor("0x4FC6FF")
guisetstate()
while 1
$a=guigetmsg()
switch $a
case $gui_event_close
exit
Case $no
        Exit
Case $yes
        MsgBox(0," ",$yes)
        Run(@comspec&" /c start "&$info)
endswitch
wend
页: [1]
查看完整版本: 请高手看下这个打开网页的代码为什么出错了??