# Send Function keys as Inputs

This is a pre-built action in Avo Assure and is available for the **@Custom Element.** The functionality of this action in Avo Assure to send the keyboard action/operation on the object specified in the input and saves the result  in the given dynamic variable.

### Syntax

**Input Value:** `<ObjectType>;<VisibleText(optional)>;<Index>;<FunctionKey>;<Number(optional)>;<abs (optional)>`

| Argument                               | Description                                                                                                               |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| <p>\<ObjectType></p><p>(Required)</p>  | Provide the object type to which the key will be sent (e.g., button, textbox)                                             |
| <p>\<VisibleText></p><p>(Optional)</p> | Enter the visible text on the object                                                                                      |
| <p>\<Index></p><p>(Required)</p>       | Provide the position of the element, which helps to identify the value based on the sequence in list . (starting from 0)​ |
| <p>\<FunctionKey></p><p>(Required)</p> | Specify the keyboard key to be pressed (e.g., Enter, Tab, Esc)                                                            |
| <p>\<Number></p><p>(Optional)</p>      | Optional numeric argument for repeat count or key combinations                                                            |
| <p>\<abs></p><p>(Optional)</p>         | If the **abs** is provided, the action is performed with absolute identification using the **absolute X path**            |

{% hint style="warning" %}
**Note:**  *The user needs to provide the type of object, its visible text of the element (if needed), its element index, and the abs.*

*To skip an optional input value, use an extra semicolon (;).*
{% endhint %}

**Output Value**

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

**Example 1**

**Sends a function key input to a specific object on the application**

The **send FunctionKeys as Inputs** action takes the value from the Input Value column (e.g., **button;;0;enter;1**) and simulates the function key input to the specified object. The result of the key operation is stored in the **{Function}** variable as **True** or **False**&#x20;

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2Fa9d1crrKz3GTzYxsFrJP%2Fimage.png?alt=media&#x26;token=62bab5b3-8c89-4f54-a91b-c2f642453f34" alt=""><figcaption></figcaption></figure>

**Example 2**

**Send a function key input to a specific object on the application using optional parameter**

&#x20;The **send FunctionKeys as Inputs** action takes the value from the Input Value column (e.g., **button;;0;enter;1**) and simulates the function key input to the specified object. The result of the key operation is stored in the **{Function}** variable as **True** or **False**
