use a while loop with a condition
Using the exist method with timeout will constantly check for the window to exist and wait the timeout setting for it. Once the object does come up it will set the condition to end the loop and continue.
Another possible method, just a twist on the code.
Same thing, just a little less code.
Code:
while not found
if VbWindow("Window").Exist(1) then
found = true
end if
wend
Using the exist method with timeout will constantly check for the window to exist and wait the timeout setting for it. Once the object does come up it will set the condition to end the loop and continue.
Another possible method, just a twist on the code.
Code:
While not VbWindow("Window").Exist(1)
wait(1)
wend
Same thing, just a little less code.