> 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/knowledge-base/knowledge-base-articles/entry-settings/autohotkey.md).

# AutoHotkey

Configure AutoHotkey entry settings in Remote Desktop Manager, including the script file or embedded script, AutoHotkey switches, and run options.

This article details the many settings and options available for ***AutoHotkey*** session tool entries in Remote Desktop Manager.

{% hint style="info" %}
***AutoHotkey*** entries are available in Remote Desktop Manager Windows. To run a script, Remote Desktop Manager starts `AutoHotKey.exe`, so AutoHotkey must be installed on the computer.
{% endhint %}

<table data-header-hidden><thead><tr><th width="200"></th><th></th></tr></thead><tbody><tr><td><strong>SETTINGS</strong></td><td><strong>DESCRIPTION</strong></td></tr><tr><td><strong>Name</strong></td><td>The name of the entry.</td></tr><tr><td><strong>Folder</strong></td><td>The folder where the entry is located.</td></tr></tbody></table>

### General

<table><thead><tr><th width="220">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Run</strong></td><td><p>Where the script comes from:</p><ul><li><strong>Command</strong></li><li><strong>Embedded script</strong></li></ul><p>With <em><strong>Command</strong></em>, enter the path of the AutoHotkey script in the field below the list, or click the browse button to select it. A compiled script (<code>.exe</code>) runs directly. With <em><strong>Embedded script</strong></em>, click <em><strong>Edit embedded script</strong></em> to write the script, which is stored in the entry. The path or the script is required.</p></td></tr><tr><td><strong>Launch unconditionally</strong></td><td>Start AutoHotkey with the <code>/force</code> switch. Enabled by default. Not applied to a compiled script (<code>.exe</code>).</td></tr><tr><td><strong>Restart</strong></td><td>Start AutoHotkey with the <code>/restart</code> switch. Not applied to a compiled script (<code>.exe</code>).</td></tr><tr><td><strong>Errors to StdOut</strong></td><td>Start AutoHotkey with the <code>/ErrorStdOut</code> switch. Not applied to a compiled script (<code>.exe</code>).</td></tr><tr><td><strong>Arguments</strong></td><td>The arguments passed to the script.</td></tr><tr><td><strong>Wait for the application to exit (Remote Desktop Manager will be unavailable)</strong></td><td>Wait until the script ends before Remote Desktop Manager can be used again.</td></tr><tr><td><strong>Run as administrator</strong></td><td>Run the script with administrator privileges.</td></tr><tr><td><strong>Change default working directory</strong></td><td>Run the script in another working directory. Select the folder in the field below the checkbox.</td></tr></tbody></table>


---

# 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/knowledge-base/knowledge-base-articles/entry-settings/autohotkey.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.
