找回密码
 加入
搜索
查看: 3290|回复: 1

[原创] QQ影音自动安装脚本

[复制链接]
发表于 2010-10-22 13:16:12 | 显示全部楼层 |阅读模式
一个新手学习AU3的第一次成果,自动安装脚本!
#cs ____________________________________

 Au3 版本: v3.3.6.1
 脚本作者: ChaseDream
        Email: 76993559@qq.com
        QQ/TM: 76993559
 脚本版本: 2.7.771.400
 脚本功能: QQ影音

#ce _______________脚本开始_________________
#region ---Au3Recorder generated code Start ---
Opt("WinWaitDelay",100)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)

Dim $AppName = "[CLASS:#32770]"
Dim $App = @ScriptDir&"\QQPlayer_Setup_27_771_p1.exe"
Dim $installpath = "D:\Program Files\Tencent\QQPlayer"

Run($App)
_WinWaitActivate($AppName,"这个向导将指引你完成“QQ影音2.7”的")
ControlClick($AppName,"","[CLASS:Button; INSTANCE:2]")
_WinWaitActivate($AppName,"在安装“QQ影音2.7”之前,请阅读授权")
ControlClick($AppName,"","[CLASS:Button; INSTANCE:2]")
_WinWaitActivate($AppName,"选择你想要安装“QQ影音2.7”的那些功")
ControlClick($AppName,"","[CLASS:Button; INSTANCE:2]")
_WinWaitActivate($AppName,"安装向导将安装 “QQ影音2.7” 在下")
ControlSetText($AppName,"","[CLASS:Edit; INSTANCE:1]",$installpath)
ControlClick($AppName,"","[CLASS:Button; INSTANCE:2]")
_WinWaitActivate($AppName,"QQ影音2.7”已安装在你的系统。")
ControlClick($AppName,"","[CLASS:Button; INSTANCE:4]")
ControlClick($AppName,"","[CLASS:Button; INSTANCE:2]")

;清除多余文件
FileDelete(@AppDataDir&"\Microsoft\Internet Explorer\Quick Launch\QQ影音.lnk")

#region --- Internal functions Au3Recorder Start ---
Func _WinWaitActivate($title,$text,$timeout=0)
        WinWait($title,$text,$timeout)
        If Not WinActive($title,$text) Then WinActivate($title,$text)
        WinWaitActive($title,$text,$timeout)
EndFunc
#endregion --- Internal functions Au3Recorder End ---

#endregion --- Au3Recorder generated code End ---
发表于 2010-11-13 10:07:44 | 显示全部楼层
没人顶 我来顶下
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-12-4 16:45 , Processed in 0.086985 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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