> ## Documentation Index
> Fetch the complete documentation index at: https://docs.standardcomputers.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Automations

> Automate the Standard UI with simple scripting

## Interfaces

Launch an interface (an app) by calling it by it's identifier. Running the line below would launch the Maps app.

```text theme={null}
com.standard.maps
```

You can select a portal (window) and route (tab) by following the app identifier with `-#-#` where the first number is the portal and the second number is the route of the portal. The numbers are indexes of the objects in array so they start at `0`. The below code will launch the third portal of the Notes app (to create). If the portal or route is out-of-bounds (or does not exist) nothing will happen.

```text theme={null}
com.standard.notes-2
```

## Elements and Inputs

You can select specific elements in a portal and route in UI automation by using an elements `handle`. Use an HTML attribute 'handle' and the value provided therein is the elements identifier to be used in the Standard UI automation code.

```text theme={null}
* my-button

* my-input This is the input text
```

## Shortcuts

You can call shortcuts for UI automation by simply writing the shortcut as it is executed without the plus sign. The below code will trigger CTRL + A (select all).

```text theme={null}
#Selects All
CTRL A

#Closes window
ALT W
```
