找回密码
 加入
搜索
查看: 2755|回复: 10

kmplayer2009播放器 请教大侠们指点!

[复制链接]
发表于 2009-10-3 11:47:19 | 显示全部楼层 |阅读模式
安装到最后弹出两个窗口 一个是浏览器的窗口 一个是安装此软件的文件目录

怎么解决!

以下是我写的 看看哪里要修改  请前辈请教

Run( "kmplayer2009.exe")
TrayTip( "正在安装","kmplayer2009.exe,请稍后......",10,1)
Sleep(1000)
WinWaitActive("KMPlayer中文版 2009RC3 安装", "欢迎使用“KMPlayer中文版 2009RC3”安装向导")
controlclick("KMPlayer中文版 2009RC3 安装", "","Button2" )
WinWaitActive("KMPlayer中文版 2009RC3 安装 ", "许可证协议")
controlclick("KMPlayer中文版 2009RC3 安装 ", "","Button2" )
WinWaitActive("KMPlayer中文版 2009RC3 安装", "安装百度工具栏")
controlclick("KMPlayer中文版 2009RC3 安装", "","Button4" )
controlclick("KMPlayer中文版 2009RC3 安装", "","Button2" )
WinWaitActive("KMPlayer中文版 2009RC3 安装 ", "选择安装位置")
controlclick("KMPlayer中文版 2009RC3 安装 ", "","Button2" )
WinWaitActive("The KMPlayer Wizard", "下一步(&E) >")
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
WinWaitActive("The KMPlayer Wizard", "常规使用 (推荐)")
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
WinWaitActive("The KMPlayer Wizard", "使用内部解码器 (推荐)")
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
WinWaitActive("The KMPlayer Wizard", "下一步(&E) >")
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
WinWaitActive("The KMPlayer Wizard", "使用内部解码器 (推荐)")
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
WinWaitActive("The KMPlayer Wizard", "经典样式")
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
WinWaitActive("The KMPlayer Wizard", "开启相册")
controlclick("The KMPlayer Wizard", "","TTntCheckBox.UnicodeClass1" )
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
WinWaitActive("The KMPlayer Wizard", "下一步(&E) >")
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
WinWaitActive("The KMPlayer Wizard", "下一步(&E) >")
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
WinWaitActive("The KMPlayer Wizard", "在向导关闭后运行播放器")
controlclick("The KMPlayer Wizard", "","TTntCheckBox.UnicodeClass18" )
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
AdlibEnable("KillProcess")
sleep(2000)
If ProcessExists("iexplore.exe") Then
   ProcessClose("iexplore.exe")
EndIf
controlclick("KMPlayer中文版 2009RC3 安装 ", "","Button4" )
controlclick("KMPlayer中文版 2009RC3 安装 ", "","Button2" )
 楼主| 发表于 2009-10-3 11:49:07 | 显示全部楼层
在线请教!!!QQ:399941000 希望能得到热心大侠的指点!!!!
发表于 2009-10-3 18:28:18 | 显示全部楼层
试试去掉 : AdlibEnable("KillProcess")

不知为什么要这句? 且你的AU3是什么版啊?看不懂..............
发表于 2009-10-3 22:21:45 | 显示全部楼层
可能不是完整代码,所以不知AdlibEnable所指。
LZ的问题表述不清,要解决什么?
 楼主| 发表于 2009-10-4 10:42:28 | 显示全部楼层
AdlibEnable("KillProcess")  我已经去除勒。但是效果还是一样!我想表达的就是 我安装这个播放器。。到安装最后一步的时候。会自动跳出播放器安装好的文件夹 和播放器的官方网站 我的意思就有什么方法能除去这两个弹出的窗口吗?
发表于 2009-10-4 10:55:44 | 显示全部楼层
查看弹出的窗口标题,试试关闭不行吗
 楼主| 发表于 2009-10-4 12:40:51 | 显示全部楼层
WinKill  ("强行关闭指定窗口")
;强行关闭指定窗口

是这个命令吗?
发表于 2009-10-4 12:47:56 | 显示全部楼层
WinClose、WinKill 都可以
 楼主| 发表于 2009-10-4 12:52:16 | 显示全部楼层
Run( "kmplayer2009.exe")
TrayTip( "正在安装","kmplayer2009.exe,请稍后......",10,1)
Sleep(1000)
WinWaitActive("KMPlayer中文版 2009RC3 安装", "欢迎使用“KMPlayer中文版 2009RC3”安装向导")
controlclick("KMPlayer中文版 2009RC3 安装", "","Button2" )
WinWaitActive("KMPlayer中文版 2009RC3 安装 ", "许可证协议")
controlclick("KMPlayer中文版 2009RC3 安装 ", "","Button2" )
WinWaitActive("KMPlayer中文版 2009RC3 安装", "安装百度工具栏")
controlclick("KMPlayer中文版 2009RC3 安装", "","Button4" )
controlclick("KMPlayer中文版 2009RC3 安装", "","Button2" )
WinWaitActive("KMPlayer中文版 2009RC3 安装 ", "选择安装位置")
controlclick("KMPlayer中文版 2009RC3 安装 ", "","Button2" )
WinWaitActive("The KMPlayer Wizard", "下一步(&E) >")
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
WinWaitActive("The KMPlayer Wizard", "常规使用 (推荐)")
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
WinWaitActive("The KMPlayer Wizard", "使用内部解码器 (推荐)")
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
WinWaitActive("The KMPlayer Wizard", "下一步(&E) >")
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
WinWaitActive("The KMPlayer Wizard", "使用内部解码器 (推荐)")
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
WinWaitActive("The KMPlayer Wizard", "经典样式")
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
WinWaitActive("The KMPlayer Wizard", "开启相册")
controlclick("The KMPlayer Wizard", "","TTntCheckBox.UnicodeClass1" )
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
WinWaitActive("The KMPlayer Wizard", "下一步(&E) >")
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
WinWaitActive("The KMPlayer Wizard", "下一步(&E) >")
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
WinWaitActive("The KMPlayer Wizard", "在向导关闭后运行播放器")
controlclick("The KMPlayer Wizard", "","TTntCheckBox.UnicodeClass18" )
controlclick("The KMPlayer Wizard", "","TTntButton.UnicodeClass2" )
sleep(2000)
If ProcessExists("iexplore.exe") Then
   ProcessClose("iexplore.exe")
EndIf
sleep(1000)
WinKill  ("KMPlayer")
controlclick("KMPlayer中文版 2009RC3 安装 ", "","Button4" )
controlclick("KMPlayer中文版 2009RC3 安装 ", "","Button2" )

经过反复的安装  也谢谢大侠们的热心帮助指点。现在可以勒。真心感谢!
发表于 2009-10-7 22:01:59 | 显示全部楼层
学习下了  呵呵 和AHK差不多的
发表于 2009-10-8 20:00:33 | 显示全部楼层
WinKill  ("KMPlayer")    这个强行关闭用在别的窗口上是不是不行啦   比如窗口的名字有数字   5555用不了!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-19 01:25 , Processed in 0.083689 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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