> For the complete documentation index, see [llms.txt](https://docs.robpod.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.robpod.cloud/hmi-designer/hmi-commands.md).

# 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.          |
| **hmi\_set\_tab**(index)         | Change the current displayed tab.                                                                                                 | **index** - Integer, index of tab (starting from 0) to be displayed.                                                                                                                                                                                                                                                        |
