找回密码
 加入
搜索
查看: 2359|回复: 2

求救啊!刚学AU3,写了个360安全浏览器的脚本运行不了,请大虾教教我!

[复制链接]
发表于 2009-7-7 23:09:47 | 显示全部楼层 |阅读模式
$TITLE = "360安全浏览器 2.2正式版 安装"
$Comment1 = "许可证协议"
$Comment2 = "安装选项"
$Comment3 = "选择安装位置"
$Comment4 = "正在完成安装向导"
Run("360se_2.2.exe")
WinWaitActive($TITLE,$Comment1)
ControlClick($TITLE,"Button2")
Send("!i")
WinWaitActive($TITLE,$Comment2)
ControlClick($TITLE,"Button6")
ControlClick($TITLE,"Button2")
Send("!n")
WinWaitActive($TITLE,$Comment4)
ControlSetText($TITLE,"Edit1","D:\Program Files\360")
ControlClick($TITLE,"Button2")
Send("!i")
WinWaitActive($TITLE,$Comment4)
ControlClick($TITLE,"Button4")
ControlClick($TITLE,"Button5")
ControlClick($TITLE,"Button2")
Send("!f")
Exit


到底哪里出错了!~虚心求教!~ 很急的!
发表于 2009-7-7 23:41:39 | 显示全部楼层
本帖最后由 lidenpan 于 2009-7-7 23:48 编辑

Run("360se_2.2.exe")
把360se_2.2.exe 改为360se2.2.exe试试。。。同时也把安装程序也改一下。

我之前也遇到些问题。。以下是我写的脚本。。也是菜鸟望见谅。。


#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_icon=..\ico\360.ico
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
$variable0="360安全浏览器 2.2 正式版 安装 "
$variable1="许可证协议"
$variable2="请选择你要执行的操作:"
$variable3="选择安装位置"
$variable4="正在完成“360安全浏览器 2.2 正式版”安装向导"
$variable5=""
$variable6=""
$variable7=""
$variable8=""

$directory="d:\Program Files\360"

opt("mousecoordmode",2)
Run("360se2.2.exe")
TrayTip("正在安装","360安全浏览器,请稍等...",5,1)
WinWaitActive($variable0,$variable1)
ControlClick($variable0,$variable1,"Button2")
sleep(200)
MouseMove(0, 0,2)
MouseClick("left", 45, 173, 1)
sleep(300)
MouseClick("left", 360, 314, 1)
WinWaitActive($variable0,$variable3)
ControlSetText($variable0,$variable3,"Edit1",$directory)
ControlClick($variable0,$variable3,"Button2")
WinWaitActive($variable0,$variable4)
ControlClick($variable0,$variable4,"Button4")
ControlClick($variable0,$variable4,"Button5")
Send("!f")
 楼主| 发表于 2009-7-8 00:00:51 | 显示全部楼层
有谁帮我写个360安全浏览器的脚本让我学学吗?
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-11-15 15:30 , Processed in 0.079406 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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