Wait for a Window

Pauses the execution of macro until a specific window is existed, focused or etc. If the window exists, you can show or focus it.


  • Which window Specifies the window to be waiting.

  • Wait for the specific window is Specifies the wait type, and it can be one of the following:

    • existed
    • not existed
    • focused
    • not focused

  • Window action If the window is existed, you can add an action to it, and it can be one of the following:

    • none
    • show
    • maximized
    • minimized
    • restore

  • Return window's handle into Specifies a variable for receiving the handle of the window, the window handle can be used in the subsequent action for another purpose.


  • For time-out options, please refer to "Time out".

  • If the wait type is "not focused" and the window is not existed, the action always succeeds.