All integrations
Built inAlways onMacro Deck

Variables

Included with Macro Deck

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

  • Set, add to, toggle or append to a variable
  • Counters and on/off switches without a plugin
  • Write any variable to a file, for example for OBS
  • Built in and always on, nothing to set up

Variables is built into Macro Deck and always on. It adds two actions: Set Variable changes the value of one of your variables, and Write Variable to File saves the current value of any variable in a file.

You create your own variables on the Variables page with New variable. A variable is Text, Numeric, Boolean or Color, and you can show it anywhere, for example in a button label with {{ vars.deaths }}.

Set Variable

Choose the Variable and an Operation:

  • Set to replaces the value with the Value you enter.
  • Add adds the Value to a number. A negative value subtracts.
  • Toggle switches a true/false variable between true and false.
  • Append adds the Value to the end of a text.

Which operations you can pick depends on the variable's type. A number is rounded to the variable's decimal places on every write.

Some integration variables can be written too, for example the volume and mute variables of your speakers and microphones, or a variable another Macro Deck shares with this one. Such a variable only takes Set to: Add, Toggle and Append work only for your own variables. To switch a microphone between muted and unmuted with one button, use the Mute / Unmute action instead.

Write Variable to File

Write Variable to File replaces the content of a File with the current value of a Variable. Any variable works, also those of integrations and plugins. The file is created if it does not exist, but its folder must already exist, and you enter its full path.

Example setups

  • A death counter: a button with Set Variable, Add and Value 1 on the variable deaths, and its label shows Deaths: {{ vars.deaths }}. A second button with Set to 0 resets it.
  • A mode switch: a Boolean variable stream_mode toggled by one button, and other buttons check it with If / Else.
  • A text source in OBS: an automation on Variable Changed for the current song runs Write Variable to File, and OBS shows the file's text on stream.

Variables does not appear on the Integrations page and has no setup dialog. Its Variables 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.

Scripts

Included with Macro Deck

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