代码:#include<windowsconstants.au3>
#include<guiconstantsex.au3>
hotkeyset("{enter}","entt")
$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,40)
guisetbkcolor("0x4FC6FF")
guisetstate()
while 1
$a=guigetmsg()
switch $a
case $gui_event_close
exit
Case $no
Exit
Case $yes
$got=guictrlread($info)
MsgBox(0," ",$got)
Run(@comspec&" /c start "&$got)
endswitch
wend
func entt()
;怎样点击“确定”啊??
endfunc
高手帮帮忙。。小菜是初学者。。 |