Docs

RunMacro Documentation

Learn RunMacro from basics to advanced.

Everything you need to start and master RunMacro — from basic commands to advanced automation workflows.

RunMacro robot
Docs Features Template Library
🧰 Features

Use the Template Library to open or insert reusable workflows

The Template Library combines complete workflows and reusable blocks from three sources: built-in templates, your templates, and Team Template Cloud. Open File › Open macro template..., search by text or category, inspect commands and dependencies, then copy the template into a new macro or insert it below the selected command without changing the original.

Prerequisites

  • RunMacro is open in the macro editor rather than the QMacro Runner window.
  • The current macro contains at least one command when you want to save a new template.
  • The main file declared by the manifest still exists and is readable before opening or inserting.
  • Referenced files, images, or sub-macros should be available; RunMacro warns before opening or inserting when dependencies are missing.

Supported modes

  • Desktop ModeThe gallery and management actions work in Desktop Mode. The window, chrome_cdp, or mixed metadata is only a recommendation; you still need to verify that the commands are valid for Desktop Mode.
  • Browser ModeThe gallery also works in Browser Mode. A CDP template may need a connected Chrome session at run time, but Chrome is not required merely to search, preview, copy, or insert it.

What it does

Template Library brings built-in templates, templates you saved, and templates cached from Team Cloud into one gallery. It supports text search, category filters, metadata, a preview of up to 12 commands, and a dependency report before use. Copy & Open creates an editable workspace copy; Add clones commands into a new group below the selection. You can also save the current macro as a template, import a file, and edit, duplicate, or delete personal entries without modifying built-in originals.

When to use it

  • Start from a complete workflow instead of building every command manually.
  • Insert a login, validation, or data-processing block into the macro being edited.
  • Save a tested command sequence for reuse in other macros.
  • Add a received .pmacro-template or .pmacro file to My Templates.

When not to use it

  • You only need to invoke an external macro at run time — use Insert PMacro or Insert QMacro.
  • You want to modify a built-in entry in place; open a copy or save your own template instead.
  • You need fully automatic distribution across machines — Team Template Cloud still requires recipients to press Sync, so use another deployment process when synchronization must be unattended.
  • The template comes from an untrusted source and you have not reviewed its commands, dependencies, or safety warnings.

Configuration steps

  1. Open File › Open macro template...; to insert at a chosen position, select a row and use the Insert macro template context-menu action.
  2. Let the built-in template check finish, or click Reload to run the check manually.
  3. Type in Search templates..., choose a category chip, and expand My Templates, Full Workflows, Block, or Team templates.
  4. Select an entry and review its description, source, readiness, recommended mode, version, tags, and command preview.
  5. Check the dependency line. If it reports missing items, inspect the details and prepare the required files before continuing.
  6. Choose Copy & Open to create a separate macro, or Add to clone the commands into the current macro.
  7. If you open while the command table already has content, choose Add to current macro or Create new macro; RunMacro asks about unsaved work when necessary.
  8. Accept the dependency warning only if you want to continue. Insertion lists and skips unsupported commands; Import silently omits them, logs their names, and can still report a successful import.
  9. Review the new group or macro, replace sample values with your own data, test it, and save it to disk.

Every option explained

Search and Category chips

Searches text across title, ID, description, category, source, mode, type, origin, and tags; category chips apply an exact category filter.

Source and type groups

My Templates contains local entries; built-ins are split into Full Workflows and Block; Team Cloud entries appear under Team templates.

Details and preview panel

Shows type, source, readiness, recommended mode, file, version, tags, up to the first 12 commands, and dependency status. Readiness comes from metadata or is inferred from tags.

Reload

Checks the system manifest over HTTPS and downloads only built-in template IDs not already present locally. Files are size-checked and SHA-256 verified before publication to the local manifest.

Import

Accepts .pmacro-template or .pmacro, reads metadata, lets you set name, ID, description, tags, mode, type, version, and icon, then saves a personal entry. A duplicate ID prompts before overwrite. Unsupported commands are omitted, their names are logged, and the dialog can still report import success.

Save current macro as template

From the File menu, sets Name, ID, Description, Category, Tags, Recommended mode, Full/Block, Version, Icon, shareable metadata, and README/notes. An empty macro cannot be saved as a template.

Copy & Open

Copies the template into the RunMacroTemplates workspace and opens the copy. Existing destinations receive a timestamp or random suffix; a .pmacro-template main file becomes <id>.pmacro.

Add

Clones valid commands into a new group below the selected command, renames labels and the group to avoid collisions, and scans risky commands so Safe Mode can still warn at run time.

View

Opens the README declared by the manifest. It reports when the entry has no README or the path no longer exists.

Edit / Duplicate / Delete

Edit changes metadata for personal or Team entries; Duplicate creates another My Template entry; Delete removes a personal entry or requests Team deletion after confirmation. Built-ins cannot be edited or deleted.

Upload Team

Enabled only for My Templates. Uploads the main file and metadata to the Team Template Gist; if the Team already has the same ID at an equal or higher version, the app asks before overwrite.

Suggest

Enabled only for My Templates. Packages the template with metadata, README, and sender information for built-in consideration; this submits a suggestion rather than publishing automatically.

Expected result

When opened, RunMacro copies the template into Downloads/RunMacroTemplates/<id> under a unique folder and loads that editable copy. When inserted, cloned commands appear in a new group below the selection, labels are renamed to avoid collisions, and the macro becomes dirty; the source template remains unchanged.

Real example

Example: open a built-in workflow as a separate macro

  1. Open File › Open macro template... and let the new-template check finish.
  2. Search for form, choose the relevant category, and expand Full Workflows.
  3. Select the template and inspect its mode, first 12 commands, and dependency line.
  4. Click Copy & Open; if the current macro has commands, choose Create new macro and handle the save prompt.
  5. Replace the sample URL and data, test the workflow, then save the new .pmacro file.

Example: save and reuse a validation block

  1. Build and test the validation command sequence in the current macro.
  2. Choose File › Save current macro as template..., set Block template, ID check-order-state, and version 1.0.0.
  3. Open the target macro, select the row after which the block belongs, then use Insert macro template from the context menu.
  4. Expand My Templates, select the saved block, and click Add.
  5. Review the new group, replace input variables, and test before saving the target macro.

Limitations and failure cases

  • The library belongs to the macro editor and is not available in QMacro Runner.
  • Recommended mode and readiness are advisory metadata; they do not switch the workspace or guarantee that the template can run in the current mode.
  • Command types unavailable in the installed RunMacro build are skipped. Insertion shows a warning and list; Import only logs their names, can still report success, and saves the supported remainder without a dialog warning.
  • Dependency analysis is a warning only. You may continue with missing files, images, or sub-macros, so failure can still occur at run time.
  • System template sync downloads missing IDs only; Reload does not upgrade or overwrite an existing built-in entry with the same ID.
  • Built-in templates cannot be edited or deleted in place; all changes must happen in a copied macro or personal template.
  • Full and Block are grouping and display metadata; the library does not prove that the commands form a complete workflow or an independent snippet.
  • Opening always creates another copy under the default Downloads workspace; old copies are not cleaned automatically.
  • IDs are slugged to lowercase letters, digits, -, or _ and capped at 80 characters; different titles can collapse to the same ID and trigger overwrite handling.

Tips & common mistakes

Always read the command preview and dependency report before running a template from another source; it can contain file deletion, code execution, or external resource references.
Use Block template for a small sequence inserted in many places, and Full Template for a workflow that should open as its own macro.
Add clones commands and wraps them in a new group; editing that group does not change the source template file.
Keep a stable ID and increase Version when distributing an update to the team; the ID identifies the entry while Version helps comparison.
Do not store passwords, tokens, or real data directly in a template. Replace them with variables or external data sources before sharing.

Verification details

  • core/template_library.py
  • ui/main_window.py
  • storage/json_store.py
  • tests/test_system_template_sync.py
RunMacro robot

Ready to automate smarter?

Download RunMacro and start automating your desktop, browser, and business workflows today.