|
有提示信息弹出时,脚本执行通过,但是无提示信息弹出时,脚本无法执行,脚本应该继续执行end if 下的退出才对! ..调试1当有提示时Result等于1,是正确的,PASS;调试2当无提示Result等于0,也是正确的..但为什么不继续执行end if下的呢?? 一直停留在if 下提示脚本处(wait for windows) 请问是什么原因????急
Sub Main
Dim Result As Integer
delayfor(5000)
Result = WindowVP (Exists, "Caption=提示", "VP=Window Existence;Wait=1,3")
If Result = 1 Then
Window SetContext, "Caption=提示", ""
PushButton Click, "ObjectIndex=4"
end if
Window SetContext, "Caption=计算机;ChildWindow", ""
PushButton Click, "ObjectIndex=3"
Window SetContext, "Caption=提示", ""
PushButton Click, "ObjectIndex=2"
End Sub |
|