Get Window

更新时间:
复制 MD 格式

1. Component introduction

Note

Prerequisites: None

Use this component to retrieve the window of a running program on Windows.

2. Input parameters

Note

For more information about each input parameter, see the help information in the component panel of the visual editor.

3. Output parameters

Note

For more information about each output parameter, see the help information in the component panel of the visual editor.

4. Examples

4.1. Example configuration

  1. For Window, enter the name of the window to retrieve.

  2. Set Window Match Pattern to "Contains Match".

  3. Process Name is optional and defaults to empty.

  4. Window Class Name is optional and defaults to empty.

Note

If you do not know the window name, capture any control within the target window. Then, check the first tab of the control editor. The `title`, `class`, and `app` values correspond to the window name, window class name, and process name.

image

4.2. Example execution result

The window is retrieved.

5. Example flow

Setup workflow

  1. Create and open a text document named "New Text Document-Window Example".

  2. Use the Get Window component to retrieve the "New Text Document-Window Example" window.

  3. Use the Fill in Text Box (Window) component to enter "Welcome to Alibaba Cloud Robotic Process Automation (RPA)" in the text box.image

Result

As shown in the figure, the flow enters "Welcome to Alibaba Cloud RPA" into the text document.