KeyRoutines
StepFreeroutine.run

Run one routine from another and use what it returns

Run routine starts another routine from inside the current one. You can hand it inputs, wait for it to finish and use its outputs, or just start it and keep going.

How it works

  • Pick the routine and fill in any inputs it asks for.
  • With Wait on (the default) the step waits, fails if the other routine fails, and returns its outputs; with Wait off it only starts it.
  • Cancelling this step cancels the routine it started, and a dry run starts the other routine as a dry run too.
  • Routines can call each other up to 8 levels deep, and waiting for a routine that's already further up the same chain is refused.

Routines that use it

Shared setup

Several hotkey routines run one Audio setup routine that sets the default audio device and volume.

Ask, then act

Ask for input, then run a helper routine with the answer as its input and read its outputs.

Fire and forget

Start a slow backup routine without waiting, then lock the PC straight away.

Settings

SettingWhat it does
RoutineThe routine to run (rt_…).
InputsValues for the routine's inputs.
WaitWait until it finishes (and fail if it fails), or only start it.

Good to know

  • At most 8 levels of routines calling routines.
  • By default the step gives up after 30 minutes of waiting.

Questions

Can a KeyRoutines routine call another routine?
Yes, with Run routine. It can wait for the result or just start it.
What happens if the routine I run fails?
When the step waits, it fails too and passes on the reason. With Wait off, the step only reports that it was started.

Pairs well with

Build this routine in KeyRoutines

Free from the Microsoft Store for Windows 11 and 10. Pro is a one-time upgrade.