# 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="/files/9ajoh0qT95JD8nC4IR3E" 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="/files/ZCu6irgfaaocHf8N9TM7" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/actions/desktop/window/select-window.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
