# HMI Commands

When coding robotics application with Robpod Studio, a set of special functions called **HMI Commands** is available to interact with HMI graphical components from the robot program.

HMI Commands are usefull to Show/Hide or Enable/Disable HMI components.

{% embed url="<https://youtu.be/WfcdKZJYw_w>" %}

#### List of HMI commands

| Command Name                     | Description                                                                                                                       | Parameters                                                                                                                                                                                                                                                                                                                  |
| -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **hmi\_set\_enabled**(id, value) | Set enable status of UI component. This function can be used to enable or disable a HMI component while robot program is running. | **id** - String, Id of UI component. Identifier of UI component whose enable status you want to change. In the HMI editor, right-click on component and select Copy Id to get its string identifier. **value** - Bool, Enable status value to set for UI component. False will disable the component, True will enabled it. |
| **hmi\_set\_visible**(id, value) | Set visibility of UI component. This function can be used to hide or show a HMI component while robot program is running.         | **id** - String, Id of UI component. Identifier of UI component whose visibility you want to change. In the HMI editor, right-click on component and select Copy Id to get its string identifier. **value** - Bool, Visibility value to set for UI component. False will hide the component, True will display it.          |


---

# 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.robpod.cloud/hmi-designer/hmi-commands.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.
