找回密码
 加入
搜索
查看: 1945|回复: 6

[AU3基础] 初来乍到刚学AU3自己做的迅雷7自动安装脚本最后一步出错请各位大虾指点

[复制链接]
发表于 2011-4-28 12:46:12 | 显示全部楼层 |阅读模式
$Teet="迅雷7安装程序"
$Teet1="软件许可协议"
$Teet2="c:\Program Files\Thunder"
$Teet3="迅雷7"

ShellExecute("Thunder.exe","",@ScriptDir,"open")

WinWait($Teet,$Teet1)
If Not WinActivate($Teet,$Teet1) Then WinActivate($Teet,$Teet1)
WinWaitActive($Teet,$Teet1)
ControlClick($Teet,"","Button1")

WinWait($Teet,$Teet2)
If Not WinActivate($Teet,$Teet2) Then WinActivate($Teet,$Teet2)
WinWaitActive($Teet,$Teet2)
ControlSetText($Teet,"","Edit1","d:\Program Files\Thunder")
ControlClick($Teet,"","Button7")

WinWait($Teet3)
If Not WinActivate($Teet3) Then WinActivate($Teet3)
WinWaitActive($Teet3)
Send("{ENTER}")
ControlClick($Teet,"","Button1")

WinWait($Teet3)
If Not WinActivate($Teet3) Then WinActivate($Teet3)
WinWaitActive($Teet3)
Send("{ENTER}")

WinWait($Teet,"")
If Not WinActivate($Teet,"") Then WinActivate($Teet,"")
WinWaitActive($Teet,"")

WinWaitActive($Teet)
ControlClick($Teet,"","Button4")
ControlClick($Teet,"","Button5")
ControlClick($Teet,"","BUtton1")

Exit

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
 楼主| 发表于 2011-4-28 12:46:44 | 显示全部楼层
运行至最后一步就不动 了不知道问题出在哪里
发表于 2011-4-28 13:05:48 | 显示全部楼层
你用窗口信息工具看过标题都一样吗
最后一步不用变量试试
发表于 2011-4-28 13:07:07 | 显示全部楼层
WinWaitActive($Teet,“”)----这个地方少加个这把
ControlClick($Teet,"","Button4")
ControlClick($Teet,"","Button5")
ControlClick($Teet,"","BUtton1")

Exit
发表于 2011-4-28 13:16:37 | 显示全部楼层
 楼主| 发表于 2011-4-28 16:52:42 | 显示全部楼层
回复 5# 星雨朝霞


    恩恩通过论坛上各位大虾的作品我那个问题已经解决了 论坛真的很强大
 楼主| 发表于 2011-4-28 16:53:04 | 显示全部楼层
回复 4# 524443834


    谢谢 问题已经解决了
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-11-14 14:28 , Processed in 0.081194 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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