Forum Discussion
AlexeyK
Alumni
14 years agoSalomon,
Try using the WaitAliasChild method to get the Error and Setup objects. If the last parameter of this method is 0, it doesn't use "Auto-wait timeout" and returns the result immediately.
You will have to create a "waiting" loop like this --
...
Counter = 0
Found = False
bWait = True
While bWait
If Aliases.Setup.WaitAliasChild("Error", 0).Exists OR Aliases.Setup.WaitAliasChild("Success", 0).Exists Then
Found = True
bWait = False
Else
Delay 500 ' Wait for 0.5 sec
Counter = Counter + 1
' If the total wait time is 20 * 0.5 = 10 sec, then exit...
If Counter = 20 Then
bWait = False
End If
End If
WEnd
If Found Then
' Found
Else
' Not found
End If
...