标题: 判断提神 [打印本页] 作者: sky2008 时间: 2006-10-27 11:26 标题: 判断提神 有提示信息弹出时,脚本执行通过,但是无提示信息弹出时,脚本无法执行,脚本应该继续执行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
End Sub作者: colume 时间: 2006-11-1 19:33
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"
else