# How to use macro

{% embed url="<https://youtu.be/Lg9qFe_a3HM>" %}

<figure><img src="/files/S98shincGwHs63ZO46Bq" alt=""><figcaption></figcaption></figure>

## Options Explained

### Supported Macro Trigger Types&#x20;

1. Key Down: macro triggers when pressing the keyboard button
2. Key Up: macro triggers when releasing the keyboard button
3. Loop: macro will trigger many times after you press the keyboard button and stop after you release the keyboard button
4. Down/Up: macro will trigger once when you press the keyboard and once when you release the keyboard button

### Terminate Hotkey

When the terminate hotkey is set, you can press the terminate hotkey to force stop a running macro. For example, if your macro has 5 operations and you press the terminate hotkey after two operations are done, then the remaining three operations will not be triggered

## Operations Explained

<div align="left"><figure><img src="/files/zzb9Z9xcNhB5BNbWuAzN" alt=""><figcaption></figcaption></figure></div>

1. Tap: perform a tap on the screen. The duration of the tap can be adjusted
2. Press+Release: this option splits a tap operation into two operations. This is rarely used
3. Swipe: perform a swipe on the screen
4. Sleep: gives a latency between two operations


---

# 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://jasons-tutorials.gitbook.io/gg-mouse-pro-tutorial/basic-tutorial-everyone-should-know/how-to-use-macro.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.
