初来乍到刚学AU3自己做的迅雷7自动安装脚本最后一步出错请各位大虾指点
$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 运行至最后一步就不动 了不知道问题出在哪里 你用窗口信息工具看过标题都一样吗
最后一步不用变量试试 WinWaitActive($Teet,“”)----这个地方少加个这把
ControlClick($Teet,"","Button4")
ControlClick($Teet,"","Button5")
ControlClick($Teet,"","BUtton1")
Exit 善用论坛搜索功能
http://www.autoitx.com/thread-19996-1-1.html 回复 5# 星雨朝霞
恩恩通过论坛上各位大虾的作品我那个问题已经解决了 论坛真的很强大 回复 4# 524443834
谢谢 问题已经解决了
页:
[1]