# Select Window

This is a pre-built action located under the **@Window Element**. The functionality of this action in Avo Assure is to select the desktop window specified in the Input Value.

### Syntax

**Input Value:** `<Desktop_Application_Window_Name/Process ID>;<index(Optional)>`

| Argument                                                              | Description                                                                                                   |
| --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| <p>\<Desktop\_Application\_Window\_Name/Process ID><br>(Required)</p> | Provide either the exact name of the application window or its Process ID to identify the target application. |
| <p>\<index><br>(Optional)</p>                                         | Specify the index to select window                                                                            |

{% hint style="info" %}
**Note:**\
The Select Window action allows interactions to be directed to the specific desktop window. It must be used before performing any operation within a new or secondary window.
{% endhint %}

**Output Value**

| Argument                                                    | Description                                                 |
| ----------------------------------------------------------- | ----------------------------------------------------------- |
| \<Dynamic Variable>(Optional);\<Dynamic Variable>(Optional) | This dynamic variable holds result as **True** or **False** |

**Example 1**

**Selects a specific desktop window**

The **Select Window** action takes the value from the Input Value column (e.g., **Avo Bank**)  to identify and activate the specified desktop window based on its title.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FxiZRv3WLVMNY9vWsvJvb%2Fimage.png?alt=media&#x26;token=a163b800-94d2-4865-a3f6-5f746b655a6a" alt=""><figcaption></figcaption></figure>

**Example 2**

**Selects a specify desktop window using optional parameter**

The **Select Window** action takes the value from the Input Value column (e.g., **Avo Bank;1**)  to identify and activate the specified desktop window based on its title and index.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FhjzIbRvz0OW35wwzxBkf%2Fimage.png?alt=media&#x26;token=dc5a61ea-023b-47f4-a620-bdfb56c8b3dd" alt=""><figcaption></figcaption></figure>
