#cs ____________________________________
Au3 版本: v3.3.6.1
脚本作者: ChaseDream
Email: 76993559@qq.com
QQ/TM: 76993559
脚本版本: 6.1.28.472
脚本功能: 酷狗音乐2010
#ce _______________脚本开始_________________
#region ---Au3Recorder generated code Start ---
Opt("WinWaitDelay",100)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)
Dim $AppName = "[CLASS:TWizardForm]"
Dim $App = @ScriptDir&"\KuGou2010.exe"
Dim $installpath = "D:\Program Files\KuGou\KuGou2010"
Run($App)
_WinWaitActivate($AppName,"欢迎使用 酷狗音乐 安装向导")
ControlClick($AppName,"","[CLASS:TNewButton; INSTANCE:1]")
_WinWaitActivate($AppName,"我已阅读并接受用户许可协议")
ControlClick($AppName,"","[CLASS:TNewButton; INSTANCE:2]")
_WinWaitActivate($AppName,"安装程序将把 酷狗音乐 安装到以下文件夹。")
ControlSetText($AppName,"","[CLASS:TEdit; INSTANCE:1]",$installpath)
ControlClick($AppName,"","[CLASS:TNewButton; INSTANCE:3]")
While 1
If WinExists($AppName," 酷狗音乐推荐安装以下绿色软件") Then
ControlCommand($AppName,"","[CLASS:TNewCheckListBox; INSTANCE:1]","Check")
ControlClick($AppName,"","[CLASS:TNewButton; INSTANCE:3]")
_WinWaitActivate($AppName,"酷狗音乐 安装完毕")
Send("{SPACE},{TAB},{SPACE},{TAB},{SPACE},{TAB},{SPACE}")
ControlClick($AppName,"","[CLASS:TNewButton; INSTANCE:3]")
ExitLoop
ElseIf WinExists($AppName,"酷狗音乐 安装完毕") Then
Send("{SPACE},{TAB},{SPACE},{TAB},{SPACE},{TAB},{SPACE}")
ControlClick($AppName,"","[CLASS:TNewButton; INSTANCE:3]")
ExitLoop
EndIf
WEnd
;清除多余文件
FileDelete(@AppDataDir&"\Microsoft\Internet Explorer\Quick Launch\酷狗音乐2010.lnk")
FileDelete(@ProgramsCommonDir&"\酷狗音乐\酷狗音乐2010\最新网页游戏.lnk")
FileDelete(@StartMenuCommonDir&"\酷狗音乐2010.lnk")
FileDelete(@ProgramsCommonDir&"\酷狗音乐2010.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 ---