请问这种button怎么点击
本帖最后由 liangxm 于 2009-6-15 09:28 编辑>>>> Control <<<<
Class: TNewButton
Instance: 1
ClassnameNN: TNewButton1
Advanced (Class):
ID: 2886516
Text: 继续(&N) >
Position: 327, 327
Size: 75, 21
ControlClick Coords: 41, 14
Style: 0x54010001
ExStyle: 0x00000000
Handle: 0x002C0B74
我想用ControlClick点击,可好像不能跟普通的button一样用,请问怎么使用呢?qqq 在你的源码ControlClick中,把button1改为TNewButton1 100%解决
例如,你现在是ControlClick("","","Button1")
改作ControlClick("","","TNewButton1") 提示下,有些是TButton1,要学会应变 本帖最后由 liangxm 于 2009-6-12 15:27 编辑
100%解决
例如,你现在是ControlClick("","","Button1")
改作ControlClick("","","TNewButton1")
kn007 发表于 2009-6-12 14:42 http://www.autoitx.com/images/common/back.gif
忘说了,我试过的,我是装优化大师
ControlClick($title1,"欢迎使用 Windows优化大师 安装向导","TNewButton1")
ControlClick($title1,"欢迎使用 Windows优化大师 安装向导","")
都试了,没用 给个地址..我帮你写,自动安装是把 你要是想懒,也可以用Send("!n") 太慢了,下了,你先留地址,如果不想用Send("!n") 给个地址..我帮你写,自动安装是把
kn007 发表于 2009-6-12 15:18 http://www.autoitx.com/images/common/back.gif
什么地址?
呵呵,谢了,我知道用send也可以,只是我想知道为什么不能用呢? 程序的下载地址 优化大师,如果需要注册的,给注册码,我不想给我的系统留下后遗症,我待会又要检索注册表 我直接找个试试 http://www.crsky.com/soft/927.html
注册码就算了,你试试能用ControlClick吗,到时看看怎么我不行。。。 可以啊,没问题,非常简单 #NoTrayIcon
Run(@ScriptDir & "\WoptiFree.exe")
$hd="安装 - Windows优化大师"
WinWait($hd,"欢迎使用 Windows优化大师 安装向导")
WinWaitActive($hd,"欢迎使用 Windows优化大师 安装向导")
ControlClick($hd,"继续(&N) >","TNewButton1")
WinWait($hd,"许可协议")
WinWaitActive($hd,"许可协议")
ControlClick($hd,"我接受协议(&A)","TNewRadioButton1")
ControlClick($hd,"继续(&N) >","TNewButton2")
WinWait($hd,"选择组件")
WinWaitActive($hd,"选择组件")
ControlClick($hd,"继续(&N) >","TNewButton2")
WinWait($hd,"选择目标位置")
WinWaitActive($hd,"选择目标位置")
ControlSetText($hd,"","TEdit1","D:\Program Files\Wopti")
ControlClick($hd,"继续(&N) >","TNewButton3")
WinWait($hd,"选择开始菜单文件夹")
WinWaitActive($hd,"选择开始菜单文件夹")
ControlClick($hd,"继续(&N) >","TNewButton4")
WinWait($hd,"选择附加任务")
WinWaitActive($hd,"选择附加任务")
ControlClick($hd,"继续(&N) >","TNewButton4")
WinWait($hd,"准备安装")
WinWaitActive($hd,"准备安装")
ControlClick($hd,"安装(&I)","TNewButton4")
WinWait($hd,"完成 Windows优化大师 安装向导")
WinWaitActive($hd,"完成 Windows优化大师 安装向导")
ControlClick($hd,"运行Windows优化大师","")
ControlClick($hd,"把网址之家设为首页","TCheckBox1")
ControlClick($hd,"完成(&F)","TNewButton4")
页:
[1]
2