Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Any replacement to Wait()
#2
Solved: 12 Years, 10 Months, 3 Weeks ago
use a while loop with a condition

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.
Reply


Messages In This Thread
Any replacement to Wait() - by srini07 - 11-10-2009, 11:58 PM
RE: Any replacement to Wait() - by jsknight1969 - 11-11-2009, 03:34 AM
RE: Any replacement to Wait() - by srini07 - 11-11-2009, 03:37 AM
RE: Any replacement to Wait() - by Tarik Sheth - 11-11-2009, 04:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  help with wait property function kp_usa 3 4,779 12-20-2012, 10:49 PM
Last Post: kp_usa
  wait QAVA 1 3,426 11-13-2012, 07:29 PM
Last Post: imzeeshan
  How to control WAIT time with STATIC variable? chong67 3 4,523 06-22-2012, 10:38 AM
Last Post: sshukla12
Exclamation Alternative for Wait Statement Veekay 2 9,318 03-20-2012, 07:13 PM
Last Post: swathi
  Verifying the value exists and if not, wait up to 5min HeZma 3 4,737 02-25-2012, 12:21 PM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 1 Guest(s)