本帖最后由 nangua111111 于 2014-6-12 11:05 编辑
我用winwait 函数 一直区分不了。#include <file.au3>
Dim $filelist
$filelist = _FileListToArray(@ScriptDir & "\file")
$hWnd=WinWait("Lvf2Avi")
$i=1
Do
ControlSetText($hWnd, "", "Edit1", @ScriptDir & "\file" & $filelist[$i] )
Sleep(100)
ControlSetText($hWnd, "", "Edit2", @ScriptDir & "\avi" & StringReplace($filelist[$i], "lvf", "avi"))
; _ArrayDisplay($filelist)
Sleep(100)
ControlClick($hWnd, "", "Button1","left",2)
Sleep(100)
$hWnd2=WinWait("Lvf2Avi","确定")
Sleep(100)
ControlClick($hWnd2, "", "Button1","left",2)
Sleep(100)
$i=$i+1
Until $i=$filelist[0]
|