找回密码
 加入
搜索
查看: 14526|回复: 9

[原创] QQ2011官方正式版全自动安装脚本

  [复制链接]
发表于 2012-2-11 10:26:52 | 显示全部楼层 |阅读模式
本帖最后由 yangsheng1119 于 2012-2-13 08:57 编辑
#RequireAdmin
Opt("TrayAutoPause",0)
Opt("MouseCoordMode",0)
BlockInput(1)
Run(@ScriptDir & "\QQ2011.exe")
$title="腾讯QQ2011 安装向导"
SendKeepActive($title,"")
$text1="我已阅读并同意软件许可协议和青少年上网安全指引"

WinWaitActive($title,$text1)
WinActive($title,$text1)
ControlCommand($title,$text1,"[CLASS:Button; INSTANCE:1]","check")
Sleep(100)
ControlClick($title,$text1,"[CLASS:Button; INSTANCE:3]")

$text2="请选择自定义安装选项与快捷方式选项"
WinWaitActive($title,$text2)
WinActive($title,$text2)


Controlclick($title,$text2,"[CLASS:Button; INSTANCE:9]")
Sleep(100)
ControlEnable($title,$text2,"[CLASS:Button; INSTANCE:10]")
ControlClick($title,$text2,"[CLASS:Button; INSTANCE:10]")
Sleep(100)
ControlEnable($title,$text2,"[CLASS:Button; INSTANCE:11]")
controlshow($title,$text2,"[CLASS:Button; INSTANCE:11]")
ControlClick($title,$text2,"[CLASS:Button; INSTANCE:11]")

Sleep(100)
ControlEnable($title,$text2,"[CLASS:Button; INSTANCE:12]")
controlshow($title,$text2,"[CLASS:Button; INSTANCE:12]")
ControlClick($title,$text2,"[CLASS:Button; INSTANCE:12]")
Sleep(100)
ControlEnable($title,$text2,"[CLASS:Button; INSTANCE:17]")
controlshow($title,$text2,"[CLASS:Button; INSTANCE:17]")


ControlClick($title,$text2,"[CLASS:Button; INSTANCE:17]")

Sleep(100)
Controlshow($title,$text2,"[CLASS:Button; INSTANCE:18]")
ControlClick($title,$text2,"[CLASS:Button; INSTANCE:18]")

Sleep(100)
ControlClick($title,$text2,"[CLASS:Button; INSTANCE:19]")
Sleep(100)
Controlshow($title,$text2,"[CLASS:Button; INSTANCE:20]")
Controlclick($title,$text2,"[CLASS:Button; INSTANCE:20]")
ControlHide($title,$text2,"[CLASS:Button; INSTANCE:20]")
Sleep(100)
ControlClick($title,$text2,"[CLASS:Button; INSTANCE:7]")
Sleep(100)
ControlClick($title,$text2,"[CLASS:Button; INSTANCE:2]")

$text3="请选择安装路径"
WinWaitActive($title,$text3)

WinActive($title,$text3)
ControlClick($title,$text3,"[CLASS:Button; INSTANCE:2]")


$text4="安装完成"
WinWaitActive($title,$text4)
WinActive($title,$text4)
Sleep(1000)
Controlclick($title,$text4,"[CLASS:Button; INSTANCE:8]")
Sleep(1000)
Controlclick($title,$text4,"[CLASS:Button; INSTANCE:6]")
Sleep(1000)

Controlclick($title,$text4,"[CLASS:Button; INSTANCE:9]")
Sleep(1000)

Controlclick($title,$text4,"[CLASS:Button; INSTANCE:7]")
Sleep(1000)
Controlclick($title,$text4,"[CLASS:Button; INSTANCE:2]")

FileDelete(@DesktopDir & "\WebQQ.url")
BlockInput(0)
发表于 2012-2-12 17:42:43 | 显示全部楼层
脚本么,看都要钱
论坛在这样发展就么人了!
发表于 2012-2-18 03:46:57 | 显示全部楼层
试一试 谢谢分享
发表于 2012-3-3 23:09:20 | 显示全部楼层
流水线型作业,没技术含量
发表于 2012-5-20 00:47:09 | 显示全部楼层
本来是为了做定制系统看看AUTOit,现在看来要好好学了
发表于 2012-6-3 18:14:35 | 显示全部楼层
看不懂,自己不会,学习学习了
发表于 2013-3-26 11:10:09 | 显示全部楼层
可以作为学习的参考
发表于 2013-3-31 11:00:05 | 显示全部楼层
感觉思路不错 可以学习 学习
发表于 2014-3-2 18:35:35 | 显示全部楼层
太长了吧!不错
发表于 2014-4-16 21:42:28 | 显示全部楼层
楼主要是能加上汉字的注释我敢保证访问量倍增呀
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-12-22 11:15 , Processed in 0.080181 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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