找回密码
 加入
搜索
查看: 3123|回复: 0

[原创] 光盘刻录大师自动安装脚本

[复制链接]
发表于 2010-12-19 17:23:16 | 显示全部楼层 |阅读模式
Opt("MouseCoordMode", 0)
Opt("WinTitleMatchMode", 2)
Opt("GUICloseOnESC",0)
Dim $Title1= "安装程序 - 光盘刻录大师(免费版)"
Dim $Title2="文件夹已存在"
Dim $Text1 = "欢迎安装 光盘刻录大师(免费版)"
Dim $Text2="许可证"
Dim $Text3="用户信息"
Dim $Text4="选择安装文件夹"
Dim $Text5="文件夹:"
Dim $Text6="选择 开始 目录"
Dim $Text7="选择额外任务"
Dim $Text8="准备安装"
Dim $Text9="完成 光盘刻录大师(免费版) 安装向导"
If Not FileExists(@ScriptDir&"\光盘刻录大师.exe") Then
TrayTip("错误!","安装文件未找到!"&@CRLF&"5秒后自动退出", 5, 1)
Sleep(3000)
Exit
EndIf
Run(@ScriptDir&"\光盘刻录大师.exe")
TrayTip("提示", "最好关闭安全软件,以免影响自动安装效果"&@CRLF&"自动安装期间,请勿动键盘鼠标", 5, 1)
Sleep(3000)
ProcessClose("360chrome.exe")
ProcessClose("iexplore.exe")
ProcessClose("115br.exe")
ProcessClose("360se.exe")
WinWaitActive($Title1, $Text1)
ControlClick($Title1, $Text1, "TButton1")
WinWaitActive($Title1, $Text2)
ControlClick($Title1, $Text2, "TRadioButton1")
ControlClick($Title1, $Text2, "TButton2")
WinWaitActive($Title1, $Text3)
ControlClick($Title1, $Text3, "TButton2")
WinWaitActive($Title1, $Text4)
ControlClick($Title1, $Text4, "TButton3")

Do
        If WinExists($Title2, $Text5)        Then
                WinWaitActive($Title2, $Text5)
                ControlClick($Title2, $Text5, "Button1")
        EndIf
        
Until        WinExists($Title1, $Text6)
WinWaitActive($Title1, $Text6)
ControlClick($Title1, $Text6, "TButton4")
WinWaitActive($Title1, $Text7)
Send("{tab} {space} !N")
WinWaitActive($Title1, $Text8)
ControlClick($Title1, $Text8, "TButton4")
WinWaitActive($Title1, $Text9)
Sleep(1000)
ProcessClose("360chrome.exe")
ProcessClose("iexplore.exe")
ProcessClose("115br.exe")
ProcessClose("360se.exe")
WinActive($Title1, $Text9)
ControlClick($Title1, $Text9, "TButton4")
Sleep(500)
ProcessClose("AllInOneFree.exe")
TrayTip("提示", "已经安装完成", 3, 1)
Sleep(3000)
Exit
下午刚做好的.费了不少脑筋...有侍完善..后期再说吧!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-11-22 00:03 , Processed in 0.099646 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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