Wait for window Action(Power Automate Desktop)

07/06/2023

Japanese version.

This action waits for a flow conditional on the state of the specified window.

This is useful when it takes a long time for a window to appear.

How to use

Drag "Wait for window" from "UI automation" under "Actions".

Set parameters.

Parameter

Find window

Select how you want to specify the window.

  • By window UI element
  • By window instance/handle
  • Per title and/or class
By window UI element

Directly specifies the UI element of the window.

The following pops up when you click on the input field.

If you have already registered a UI element, select the object,If not registered, click the "Add UI element" button.

Hover the mouse over the menu item you wish to select when the next window appears.

When you hover the mouse over it, it will be surrounded by a red frame.

Then hold down the Ctrl key and click.

The input field should appear as shown in the following figure (the text will vary depending on the UI element you have selected).

By window instance/handle

Specifies the window instance created by the "Get window" action.

Per title and/or class

Specify the title and class.

It can be found in the selector of the UI element, but due to its difficulty, other options are recommended whenever possible.

Wait for window to

Choose which state to wait for.

  • Open
  • Close
  • Become focused
  • Lose Focus

Focus window after it opens

Select whether to shift focus when the specified window is opened.

Fail with timeout error

If OFF, waits without time limit.

If ON, specifies seconds as time limit.

For those who want to learn Power Automate Desktop effectively


The information on this site is now available in an easy-to-read e-book format.

Or Kindle Unlimited (unlimited reading).

You willl discover how to about basic operations.

By the end of this book, you will be equipped with the knowledge you need to use Power Automate Desktop to streamline your workflow.

Links

UI automation Actions