Waiting for Windows task to Complete

Discuss RoboTask here
Post Reply
ibotix
Posts: 1
Joined: Sun Jun 26, 2005 7:58 pm

Waiting for Windows task to Complete

Post 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!


Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Waiting for Windows task to Complete

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