All integrations
Built inAlways onMacro Deck

Scripts

Included with Macro Deck

Build a set of actions once as a script and run it from any button, automation or other script.

  • Reuse the same actions on many buttons
  • Give each caller its own input values
  • Change a script once, every button follows
  • Built in and always on, nothing to set up

Scripts is built into Macro Deck and always on. It adds the Run Script action, which runs one of your scripts and waits for it to finish. A script is a set of actions you build once on the Scripts page and then run from as many buttons, automations and other scripts as you like. When you change the script, every place that runs it uses the new version.

Inputs

A script can declare inputs: values the caller fills in when it runs the script. An input has a name, a type (Text, Numeric, Boolean or Color) and an optional default. Inside the script you read it like a variable, for example {{ vars.scene }}. When you choose the script in Run Script, its inputs appear as fields in the action, so each button can pass its own value.

A script can also be marked Runs on a widget. Then "This widget" inside the script targets whichever widget ran it, so one script can change the button that pressed it.

Example setups

  • A Go live script switches the OBS scene, starts the stream and changes the deck to your streaming profile. Three buttons on different profiles run it with Run Script.
  • A Switch scene script with a text input scene is run by one button per scene, each with its own scene name.
  • An automation on a Schedule event runs the same script as a button, so you can start it by hand or at a set time.

Scripts can be run from other places too. Any device signed in to Macro Deck can list and run every script that does not run on a widget, with its own input values. On iPhone and iPad, Macro Deck Companion does this from Shortcuts or Siri. To run a script on another computer that runs Macro Deck, use Run Script on another PC of Macro Deck Delegate.

Scripts does not appear on the Integrations page and has no setup dialog. Its Scripts category is always in the Add action dialog.

Macro Deck Companion

Included with Macro Deck

Control the phones and tablets that run the Companion app: brightness, rotation, screen and screenshots.

Macro Deck Delegate

Included with Macro Deck

Run scripts on another PC running Macro Deck and use the variables it shares.

Variables

Included with Macro Deck

Change your variables from buttons and automations, and write any variable to a file.