我坚持使用这个脚本。多年来它没有用。然后它突然发生了......现在......重新安装......它再也不起作用了。它停在第一个winwaitactive线上。该文件夹肯定是正确的。
#include <File.au3>
#include <Array.au3>
AutoItSetOption ("WinTitleMatchMode", 1)
AutoItSetOption ("WinTextMatchMode", 2)
AutoItSetOption ("TrayIconDebug", 1)
$folder = "F:\MUSIC SOFTWARE\BIAB\TRACKS\REALTRACKS\"
Local $files = _FileListToArray($folder, "*")
For $i = 1 to UBound($files)
install($files[$i])
Next
Func install($file)
$pid = Run($file)
WinWaitActive("Setup - RealTracks", "Welcome to the RealTracks")
Send("!n")
WinWait("Setup - RealTracks", "Please read")
Send("!a")
Send("!n")
WinWait("Setup - RealTracks", "When you are ready")
Send("!n")
WinWait("Setup - RealTracks", "Where should")
Send("!n")
WinWait("Setup - RealTracks", "Setup is now ready")
Send("!i")
WinWait("Setup - RealTracks", "Completing")
Send("!f")
ProcessWaitClose($pid)
EndFunc
相当明显的解决方案......只需要添加$ folder install($ folder&$ files [$ i])
—
user3261239 2014年