> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/rdm/it/knowledge-base/how-to-articles/entry-types-events-settings/event-auto-typing-macro.md).

# Macro di digitazione automatica dell'evento

Le macro di digitazione vengono eseguite automaticamente una volta stabilita una connessione. Nelle ***Proprietà*** di una voce di sessione, vada alla sezione ***Eventi***, faccia clic sulla scheda ***Dopo l'apertura*** e inserisca le sue macro personalizzate nel campo di testo ***Macro di digitazione***. Faccia clic su ***Salva*** per applicare le modifiche.

<figure><img src="https://webdevolutions.blob.core.windows.net/docs/RDMW4480_2026_2.png" alt=""><figcaption></figcaption></figure>

Le macro di digitazione possono essere aggiunte anche nel campo ***ID del pulsante di accesso*** di una voce di sito web.

![](https://cdnweb.devolutions.net/docs/docs_en_kb_KB6163.png)

### Macro di digitazione

I tasti della tastiera sono rappresentati da tag predefiniti tra parentesi graffe. Per specificare un singolo carattere della tastiera, utilizzi il carattere stesso senza parentesi graffe. Ad esempio, rappresenti la lettera ***A*** digitando il carattere "A" nella macro di digitazione. Per rappresentare più di un carattere, come ***Hello***, aggiunga ogni carattere aggiuntivo a quello precedente: "Hello".

### Tasti speciali

Per specificare i caratteri che non vengono visualizzati quando si preme un tasto, come <kbd>Enter</kbd> o <kbd>Tab</kbd>, così come i tasti che rappresentano azioni anziché caratteri, faccia riferimento ai codici nella tabella seguente.

| TASTO                                         | CODICE                  |
| --------------------------------------------- | ----------------------- |
| <kbd>Backspace</kbd>                          | {BACKSPACE}/{BS}/{BKSP} |
| <kbd>Break</kbd>                              | {BREAK}                 |
| <kbd>Caps lock</kbd>                          | {CAPSLOCK}              |
| <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>Del</kbd> | {CTRL-ALT-DEL}          |
| <kbd>Del</kbd>/<kbd>Delete</kbd>              | {DEL}/{DELETE}          |
| <kbd>Down</kbd> (freccia)                     | {DOWN}                  |
| <kbd>End</kbd>                                | {END}                   |
| <kbd>Entrée</kbd>                             | {ENTER}                 |
| <kbd>Esc</kbd>                                | {ESC}                   |
| <kbd>Help</kbd>                               | {HELP}                  |
| <kbd>Home</kbd>                               | {HOME}                  |
| <kbd>Ins</kbd>/<kbd>Insert</kbd>              | {INS}/{INSERT}          |
| <kbd>Add</kbd> (tastierino numerico)          | {ADD}                   |
| <kbd>Divide</kbd> (tastierino numerico)       | {DIVIDE}                |
| <kbd>Multiply</kbd> (tastierino numerico)     | {MULTIPLY}              |
| <kbd>Substract</kbd> (tastierino numerico)    | {SUBTRACT}              |
| <kbd>Left</kbd> (freccia)                     | {LEFT}                  |
| <kbd>Num lock</kbd>                           | {NUMLOCK}               |
| <kbd>Page down</kbd>                          | {PGDN}                  |
| <kbd>Page up</kbd>                            | {PGUP}                  |
| <kbd>Print screen</kbd>                       | {PRTSC}                 |
| <kbd>Right</kbd> (freccia)                    | {RIGHT}                 |
| <kbd>Scroll lock</kbd>                        | {SCROLLOCK}             |
| <kbd>Tab</kbd>                                | {TAB}                   |
| <kbd>Up</kbd> (freccia)                       | {UP}                    |
| <kbd>F1</kbd>                                 | {F1}                    |
| <kbd>F2</kbd>                                 | {F2}                    |
| <kbd>F3</kbd>                                 | {F3}                    |
| <kbd>F4</kbd>                                 | {F4}                    |
| <kbd>F5</kbd>                                 | {F5}                    |
| <kbd>F6</kbd>                                 | {F6}                    |
| <kbd>F7</kbd>                                 | {F7}                    |
| <kbd>F8</kbd>                                 | {F8}                    |
| <kbd>F9</kbd>                                 | {F9}                    |
| <kbd>F10</kbd>                                | {F10}                   |
| <kbd>F11</kbd>                                | {F11}                   |
| <kbd>F12</kbd>                                | {F12}                   |
| <kbd>F13</kbd>                                | {F13}                   |
| <kbd>F14</kbd>                                | {F14}                   |
| <kbd>F15</kbd>                                | {F15}                   |
| <kbd>F16</kbd>                                | {F16}                   |

Per specificare i tasti combinati con qualsiasi combinazione dei tasti <kbd>Shift</kbd>, <kbd>Ctrl</kbd> e <kbd>Alt</kbd>, faccia precedere il codice del tasto da uno o più dei seguenti segni.

| TASTO            | CODICE                      |
| ---------------- | --------------------------- |
| <kbd>Alt</kbd>   | {ALT}, {LALT}, {RALT}       |
| <kbd>Ctrl</kbd>  | {CTRL}, {LCTRL}, {RCTRL}    |
| <kbd>Shift</kbd> | {SHIFT}, {LSHIFT}, {RSHIFT} |
| <kbd>Win</kbd>   | {LWIN}, {RWIN}              |

Per specificare che qualsiasi combinazione dei tasti <kbd>Shift</kbd>, <kbd>Ctrl</kbd> e <kbd>Alt</kbd> deve essere tenuta premuta mentre vengono premuti diversi altri tasti, racchiuda il codice di tali tasti tra parentesi. Ad esempio, per specificare di tenere premuto <kbd>Shift</kbd> mentre vengono premuti <kbd>E</kbd> e <kbd>C</kbd>, utilizzi "{SHIFT}(EC)". Per specificare di tenere premuto <kbd>Shift</kbd> mentre viene premuto <kbd>E</kbd>, seguito da <kbd>C</kbd>, senza <kbd>Shift</kbd>, utilizzi "{SHIFT}EC".

### Comandi speciali

| COMANDI                                                | DESCRIZIONE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| {CLIPBOARD}                                            | Incolla il testo attualmente presente negli appunti di sistema nella posizione esatta del comando durante l'esecuzione della macro. Il contenuto degli appunti viene letto al momento dell'esecuzione e non quando la macro viene creata o avviata, garantendo che venga sempre utilizzato il testo copiato più recente.                                                                                                                                                                                                                                    |
| {CTRL-ALT-DEL}                                         | Invia la combinazione di tasti <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>DEL</kbd>.                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| {DELAY}                                                | Introduce un ritardo prima del comando successivo. Il ritardo predefinito è di 300 ms e questo valore può essere configurato in contesti specifici.                                                                                                                                                                                                                                                                                                                                                                                                         |
| {DELAY:???}                                            | Introduce un ritardo della durata specificata (in millisecondi) prima del comando successivo.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| {PREV-WINDOW}                                          | Seleziona la finestra precedentemente attiva prima di eseguire i comandi rimanenti.                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| {SENDKEYS} {ENDSENDKEYS}                               | Utilizzato in combinazione con il comando {ENDSENDKEYS}. Il testo racchiuso tra questi comandi viene eseguito utilizzando l'[API SendKey predefinita di .NET](https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.sendkeys?view=windowsdesktop-8.0), che non supporta i comandi specifici di Remote Desktop Manager elencati in questo argomento. Questo comando viene generalmente utilizzato negli scenari in cui la funzionalità delle macro di digitazione non supporta determinate azioni, mentre l'API SendKeys predefinita di .NET sì. |
| {WAITFORWINDOW:????} e {WAITFORWINDOW:???;TIMEOUT:???} | Attende finché non viene rilevata una finestra con il titolo specificato. È possibile definire un timeout per proseguire con la macro se la finestra non viene trovata entro il limite di tempo indicato. Se non viene specificato alcun timeout, il valore predefinito è 10.000 ms.                                                                                                                                                                                                                                                                        |
| {WINDOW:???}                                           | Mette a fuoco una finestra contenente il nome specificato dopo i due punti.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

### Password macro

{% hint style="info" %}
L'impostazione **Consenti password nella variabile** deve essere abilitata nelle **Impostazioni di sicurezza** della voce.
{% endhint %}

È possibile definire una password da utilizzare esclusivamente all'interno della macro di digitazione. Utilizzi la variabile $MACRO\_PASSWORD$ per accedere alla password.

#### Vedere anche

* [Macro di digitazione automatica non funzionante in una voce RDP](/rdm/it/knowledge-base/troubleshooting-articles/auto-typing-macro-not-working-in-rdp-entry.md)
* [Devolutions Academy - Automating tasks with scripts and macros](https://academy.devolutions.net/student/path/1925316/activity/2668004)
* [Devolutions Academy – Built-in automation: PowerShell scripts and macros](https://academy.devolutions.net/student/activity/3380125)
* [Devolutions Academy - Configure event auto typing macros in Remote Desktop Manager](https://academy.devolutions.net/student/page/3146572-configure-event-auto-typing-macros-in-remote-desktop-manager?curriculum_activity_id=4878617\&path_id=2628397\&sid=d7519f7e-923c-40d5-8992-ab3472979ace\&sid_i=0)
* [Devolutions Academy - Streamlining remote connections with event triggers](https://academy.devolutions.net/student/path/1925316/activity/2668000)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/rdm/it/knowledge-base/how-to-articles/entry-types-events-settings/event-auto-typing-macro.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
