> For the complete documentation index, see [llms.txt](https://help.security.gallagher.com/knowledge-hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.security.gallagher.com/knowledge-hub/command-centre-client/using-command-centre/working-with-viewers/tile-actions/status-tile-actions/running-macros.md).

# Running Macros

Macros that are added to a Site Plan or Status Tile can be run at any given time from the tile via a context menu, as follows:

1. Either:
   * Click on the Macro's icon, and select **Run Macro**,

     OR
   * **Double-click** on the Macro's icon.
2. Does a message similar to the one below display?

   ![](https://2455150842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi6UYAoyykM6nimMN9yss%2Fuploads%2Fgit-blob-d5e4a7d89b1cf7a8fd4326142eb25cbf2ea62215%2Frunmacroconfirmation.png?alt=media)

   <table><thead><tr><th width="66">If...</th><th>then...</th></tr></thead><tbody><tr><td>yes</td><td>the Macro has the "Operator confirmation required when run manually" option selected (on the <strong>Schedule/Repeats</strong> tile of the Macro's properties).<br>Click the <strong>Yes</strong> button, and the Macro will run.</td></tr><tr><td>no</td><td>the Macro will run.</td></tr></tbody></table>

   The Macro icon changes image for several seconds ![](https://2455150842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi6UYAoyykM6nimMN9yss%2Fuploads%2Fgit-blob-4502d27360a2281652f5698a095a319deb0d56fe%2Fmacrorun_icon.png?alt=media) as an indication the macro has run.

###

Notes:

* An "Operator Ran Macro" event will be generated.
* When a Macro runs it is possible that some of its actions cannot be carried out, (e.g. when a Macro is set-up a relay may support pulse overrides, however when the Macro runs this could have been changed). In such cases, if the Macro was run (from a Schedule or by an Operator), then an event is generated indicating which item(s) and action(s) could not be carried out.
* If the server goes offline at the time a Macro is scheduled to run, the Macro will only run if the server comes back online within one minute of the scheduled run time. If it is not run, when the server comes back online an event will be generated.


---

# 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://help.security.gallagher.com/knowledge-hub/command-centre-client/using-command-centre/working-with-viewers/tile-actions/status-tile-actions/running-macros.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.
