Skip to content

Delay

Pause before the next action.

Where
+ Add actionGeneralDelay
When pressed list with Play sound drumroll.mp3, an open Delay of 1500 milliseconds and Play sound applause.ogg

Delay pauses the macro before the next action. Use it to time things: switch the scene, wait a moment, then play the sound.

Setting What it does
Milliseconds How long to wait. 1000 is one second. Either a plain number, or a {{variable}} — type {{ to pick one.

The field takes an expression as well as a number, so a delay can follow a variable: {{wait}} for a length another action worked out, or {{heldMs}} to wait as long as the pad was held.

It is worked out afresh every time the action runs, including on each round of a repeating button.

  • When the expression does not come out as a number — the variable is empty, missing or holds text — the last plain number you typed is used instead, and the reason goes to the log.
  • A negative result waits not at all, and fractions are rounded to the nearest millisecond.
  • A delay always holds up the actions after it.
  • Actions before it with Wait off keep running during the delay. In the screenshot, with Wait on for the drum roll, the applause comes 1.5 seconds after the drum roll ends. With Wait off, it comes 1.5 seconds after the drum roll starts.
  • Stopping the macro ends the delay at once; the actions after it do not run.