代码ARunWait("INSTALL/WINRAR.exe")
WINRAR.exe的代码#requireadmin
Opt("TrayIconHide", 1)
MsgBox(1,"a","b")
RunWait("SOFT/WinRAR_3.90_SC-PRET-0901.exe")
WinWaitActive("WinRAR 3.90 简体中文美化版")
ControlClick("WinRAR 3.90 简体中文美化版","","Button2")
WinWaitActive("WinRAR 简体中文版安装")
ControlClick("WinRAR 简体中文版安装","","Button27")
While WinExists("WinRAR 简体中文版安装")
WinWaitActive("WinRAR 简体中文版安装")
ControlClick("WinRAR 简体中文版安装","","Button1")
WEnd
Sleep(1000)
If WinExists("WinRAR") Then
WinWaitActive("WinRAR")
Send("!{F4}")
EndIf
第3行:MsgBox(1,"a","b")为测试用,发现出现了这个文本框,然后就不接下去运行,开进程管理器,有这个进程。
感觉上是WINRAR.exe不运行WinRAR_3.90_SC-PRET-0901.exe
然后就茫然了···当然,直接双击运行WINRAR.exe是可以运行的。
请教各位高手了啊!!! |