Page 1 of 1

Waiting for Windows task to Complete

Posted: Sun Jun 26, 2005 8:14 pm
by ibotix
Is there anyway to "pause" a task while a specific window is active?
And then continue the task when another window with a different caption
becomes active.

Thanks for your help!



Waiting for Windows task to Complete

Posted: Fri Jul 08, 2005 5:49 am
by Oleg
Do you want to wait for another process finishing? There is "wait for process" action for this purpose.
If you want to check specified window you must use construction like this:

Simple loop from 0 to 1000 //for example
   If {WindowExists(Your window caption)} = then
      Pause 1000 ms
   Else
      break
   End if
End loop
...
Your steps
...

This construction allows you to wait until your window will be destroyed. Also there are another window macrovariables:
IsWindowActive
IsWindowHidden
IsWindowMaximized
IsWindowMinimized
IsWindowVisible