找回密码
 加入
搜索
查看: 1576|回复: 0

[GUI管理] 请问哪个函数能点击这个gui上面的“确定”按钮啊??

[复制链接]
发表于 2012-10-4 12:09:23 | 显示全部楼层 |阅读模式
代码:
#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
高手帮帮忙。。小菜是初学者。。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-6-2 22:25 , Processed in 0.069456 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表