|
安装时用什么选择组件中的完整安装和文件关联中的所有文件下面是我做的请大家帮我看看
1 run("KmplayerPlus.exe")
2 WinWait("Kmplayer Plus 20090214","欢迎使用“Kmplayer Plus”安装向导")
3 WinWaitActive("Kmplayer Plus 20090214","欢迎使用“Kmplayer Plus”安装向导")
4 Send("!n")
5 WinWait("Kmplayer Plus 20090214","许可证协议")
6 WinWaitActive("Kmplayer Plus 20090214","许可证协议")
7 ControlClick("Kmplayer Plus 20090214","许可证协议","Button2","left")
8 WinWait("Kmplayer Plus 20090214","选择组件")
9 WinWaitActive("Kmplayer Plus 20090214","选择组件")
10 ControlCommand("Kmplayer Plus 20090214","选择组件","ComboBox1","AddString","完整安装")
这里一定错了,但我不知道这里要用什么,这里在安装时还是默认的默认安装
11 ControlClick("Kmplayer Plus 20090214","选择组件","Button2","left")
12 WinWait("Kmplayer Plus 20090214","选择安装位置")
13 WinWaitActive("Kmplayer Plus 20090214","选择安装位置")
14 Controlsettext("Kmplayer Plus 20090214","选择安装位置","edit1","d:\Program Files\Kmplayer Plus")
15 send("d:\Program Files\Kmplayer Plus")
16 ControlClick("Kmplayer Plus 20090214","选择安装位置","Button2","left")
17 WinWait("Kmplayer Plus 文件关联 ","选择文件格式")
18 WinWaitActive("Kmplayer Plus 文件关联 ","选择文件格式")
19 ControlCommand("Kmplayer Plus 文件关联 ","选择文件格式","ComboBox1","AddString","所有视频格式")
这里也是,不知道用什么,安装时还是默认格式
20 ControlClick("Kmplayer Plus 文件关联 ","选择文件格式","Button2","left")
21 WinWait("Kmplayer Plus 20090214","正在完成“Kmplayer Plus”安装向导")
22 WinWaitActive("Kmplayer Plus 20090214","正在完成“Kmplayer Plus”安装向导")
23 ControlCommand("Kmplayer Plus 20090214","正在完成“Kmplayer Plus”安装向导","Button4","uncheck")
24 Send("!f")
请高手指点 |
|