> 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/fr/knowledge-base/troubleshooting-articles/auto-typing-macro-not-working-in-rdp-entry.md).

# La macro de saisie automatique ne fonctionne pas dans une entrée RDP

Corrigez une macro de saisie automatique qui échoue dans une entrée RDP en activant l'option Prendre le focus lors de la connexion dans les paramètres de Remote Desktop Manager.

Si votre macro de saisie automatique ne fonctionne plus avec une entrée RDP, le problème peut être que Remote Desktop Manager ne met pas automatiquement le focus sur l'onglet de la session RDP lorsque la connexion est établie. Par conséquent, la macro est envoyée à la mauvaise fenêtre.

#### Solution

Configurez Remote Desktop Manager pour qu'il mette automatiquement le focus sur la session RDP lors de la connexion :

1. Dans Remote Desktop Manager, allez dans ***Fichier*** – ***Paramètres***.
2. Naviguez vers ***Types d'entrées*** – ***Sessions*** – ***Bureau à distance (RDP)***.
3. Dans la section ***Avancé***, activez ***Prendre le focus lors de la connexion***.
4. Cliquez sur ***Enregistrer*** pour appliquer vos modifications.

Une fois cette option activée, Remote Desktop Manager mettra automatiquement l'onglet de la session RDP au premier plan lors de la connexion, ce qui permettra à la macro de saisie automatique de s'exécuter correctement.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/rdm/fr/knowledge-base/troubleshooting-articles/auto-typing-macro-not-working-in-rdp-entry.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
