# /custombind

## Syntax

**/custombind \[ list | \[ add|delete|set|clear** ***bindname*****\[-down|-up] ] \[*****command*** **]**

## Description

This command is used to add, delete, list or change custom key bindings. See also [/bind](/macroquest/commands/slash-commands/bind.md) and [/dumpbinds](/macroquest/commands/slash-commands/dumpbinds.md).

|                                                     |                                                                                                              |
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| **/custombind list**                                | Lists all your custom bind names and commands (the key combinations must be set using /bind)                 |
| **/custombind add** ***bindname***                  | Add a new bind called *bindname* ready for use.                                                              |
| **/custombind delete** ***bindname***               | Remove the custom bind *bindname*.                                                                           |
| **/custombind clear name\[-down\|-up]**             | This will clear a specific command for a custom bind. If -up or -down is not specified it defaults to -down. |
| **/custombind set** ***bindname*****\[-down\|-up]** | Will set a specific command for a custom bind. This too defaults to -down if not specified.                  |

## Example

**NOTE: MQ2's very first bind command is "RANGED" so you do not need to do this, it is just listed here as an example**

```
    /custombind add mybind
    /custombind set mybind /ranged
    /bind mybind n
```

This binds the /ranged command to the n key.

Example of using down and up

```
/custombind add echotest
/custombind set echotest-down /echo n key is down!
/custombind set echotest-up /echo n key is up!
/bind echotest n
```


---

# Agent Instructions: 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:

```
GET https://macroquest.gitbook.io/macroquest/plugins/core-plugins/mq2custombinds/custombind.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
