找回密码
 加入
搜索
查看: 4264|回复: 5

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

  [复制链接]
发表于 2010-1-12 18:10:39 | 显示全部楼层 |阅读模式
$t="安装"
$T2="暴风影音"
run("Storm.exe")
WinWaitActive($t,"欢迎")
send("!n")
WinWaitActive($t)
Send("!i")
WinWaitActive($t)
send("!n")
WinWaitActive($t)
send("!n")
WinWaitActive($t,"免费的百度工具栏")
ControlClick ($t,"免费的百度工具栏","Button4")
send("!i")
send("!d")
WinWait($t,"皮肤外观")
WinWaitActive($t,"皮肤外观")
send("!n")
WinWaitActive($t,"暴风")
send("{space}")
send("!f")
FileDelete(@DesktopDir&"\免费影视.lnk")
FileDelete(@DesktopDir&"\暴风游戏.lnk")
FileDelete (@AppDataDir&"\Microsoft\Internet Explorer\Quick Launch\暴风游戏.lnk")
FileDelete (@AppDataDir&"\Microsoft\Internet Explorer\Quick Launch\免费影视.lnk")
FileDelete (@AppDataDir&"\Microsoft\Internet Explorer\Quick Launch\暴风影音.lnk")
if WinWaitActive("找不到服务器 - Microsoft Internet Explorer") then WinClose ("找不到服务器 - Microsoft Internet Explorer")

run("C:\Program Files\StormII\Storm.exe")
WinWait($t2,"")
;if WinWaitActive("Windows 安全警报") then send("!u")
MsgBox(4096, "暴风自动安装", "暴风盒子出现后,请点击“确定”按钮",0)
WinWaitActive($t2,"")
WinMove("暴风盒子", "", 525, 0, 476, 490)
MouseClick ( "left" , 988, 14 , 1)
WinMove("暴风影音", "", 0, 0, 524, 490)
MouseClick ( "left" , 417, 15 , 1)
MouseClick ( "left" , 468, 220 , 1)
MouseClick ( "left" , 90, 102 , 1)
MouseClick ( "left" , 191, 325 , 1)
MouseClick ( "left" , 260, 323 , 1)
MouseClick ( "left" , 343, 324 , 1)

MouseClick ( "left" , 54, 233 , 1)
MouseClick ( "left" , 245, 121 , 1)
MouseClick ( "left" , 245, 207 , 1)
MouseClick ( "left" , 182, 388 , 1)

MouseClick ( "left" , 86, 410 , 1)
MouseClick ( "left" , 245, 120 , 1)
MouseClick ( "left" , 245, 154 , 1)
MouseClick ( "left" , 180, 170 , 1)
WinClose($t2, "")
exit
发表于 2010-3-31 14:32:27 | 显示全部楼层
回复 1# yamhpsxn

哪个版本的暴封影音?
发表于 2010-4-2 11:17:19 | 显示全部楼层
同问!
发表于 2010-4-6 15:15:40 | 显示全部楼层
ControlClick("腾讯QQ2010 安装向导","请选择安装路径","Button3")
怎么改安装路径,用什么命令,谢谢
发表于 2010-9-14 14:32:08 | 显示全部楼层
回复 4# lmy20081984
ControlSetText
发表于 2010-9-23 11:21:53 | 显示全部楼层
正好用的上,谢谢。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-11-23 04:04 , Processed in 0.072396 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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