|
发表于 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") |
|