|
楼主 |
发表于 2010-2-27 10:35:00
|
显示全部楼层
本帖最后由 cnergao 于 2010-2-27 14:13 编辑
最后确定的代码:供大家参考修改。有不足的地方请提出。谢谢。
第一种: WinWait($title3)
While WinExists($title3)
ControlSetText($title3, "", "Edit1", $FileList[$n]);在输入框中输入要打开的文件名
$z = ControlGetText($title3, "", "Edit1")
If $z == $FileList[$n] Then
ControlClick($title3, "", "Button2", "left");点击打开按钮
EndIf
WEnd
经这种好象也会停住。死循环.
第二种: WinWait($title3)
Do
ControlSetText($title3, "", "Edit1", $FileList[$n])
ControlClick($title3, "", "Button2", "left")
Until Not WinExists($title3) |
|