KeyRoutines

Triggers, conditions, loops and flow

The building blocks every routine uses: start on an event, check a condition, repeat, wait, branch and run steps side by side.

Triggers (5)

Steps (13)

Step · Flow and routinesFree

Stop repeating

Stop repeating ends the Repeat it's inside and carries on with whatever comes after it. Use it when you've found the item you were looking for or a check says there's no point going round again.

Step · Flow and routinesFree

Comment

Comment is a note you drop between steps. It does nothing when the routine runs; it's there so you remember why a step exists or what a section of the routine is for.

Step · Flow and routinesFree

Next round

Next round jumps straight to the next round of the Repeat it's in, skipping the steps left in this one. It's handy for passing over files, lines or items that don't need any work.

Step · Flow and routinesFree

Delay

Delay pauses the routine for a time you choose before the next step runs. People add it after opening an app, between key presses, or anywhere a program needs a moment to react.

Step · Flow and routinesFree

Finish routine

Finish routine ends the whole routine successfully on the spot and hands back the outputs you fill in. It's the way a small helper routine returns an answer to the routine that started it.

Step · Flow and routinesFree

Stop routine

Stop routine ends the current run right there. You choose how it should be recorded and can add a short message, which makes the run history easy to read later.

Step · Flow and routinesFree

Cancel routine

Cancel routine stops the runs of a routine you pick. It's useful as an emergency hotkey or to end a long job when something else takes priority.

Step · Flow and routinesFree

Send routine event

Send routine event broadcasts a named signal from this routine. Other routines that listen with the Routine event trigger start when it's sent, so you can chain routines without them knowing about each other.

Step · Flow and routinesFree

Run routine

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.

Step · Flow and routinesFree

Turn routine on or off

Turn routine on or off enables or disables another routine. A disabled routine's triggers stop listening until it's turned back on, which is a neat way to pause automations for a while.

Step · Flow and routinesFree

Remember

Remember keeps a value safe after the routine ends, even across restarts of KeyRoutines and the PC. Use it for things like the last volume you set, a folder you picked, or whether you're away.

Step · Flow and routinesFree

Set variable

Set variable puts a value under a name so later steps can use it. By default it lasts for this run only, which makes it the usual way to keep a counter, a file path or a result to use further down.

Step · Flow and routinesFree

Toggle

Toggle flips a remembered value between on and off. Paired with an If, it turns one hotkey into a two-way switch, like the free version of an AFK toggle.

Conditions (6)

Condition · Flow and routinesFree

Compare values

Compare values is the everyday yes-or-no check in KeyRoutines. You put a value on the left, pick a test, and put a value on the right, so an If can branch on things like a battery level, a window title or a number an earlier step worked out.

Condition · Flow and routinesFree

Expression is true

Expression is true is the power-user condition. Instead of filling in a form, you type a short expression, for example a counter of at least 3 and Visual Studio Code in front, and the routine treats the result as yes or no.

Condition · Flow and routinesFree

Remembered value is

Remembered value is reads a value saved by Remember or Toggle and answers a simple question about it. It's how a single hotkey knows whether to switch something on or put it back.

Condition · Flow and routinesFree

Routine is running

Routine is running checks whether a routine you pick has a run going right now. People use it to avoid starting a long job twice or to wait for one routine before another one changes the same things.

Condition · Flow and routinesFree

Step succeeded

Step succeeded looks back at a step earlier in the same routine and tells you if it worked. It's most useful after a step that's allowed to fail, so you can try a backup plan instead of stopping.

Condition · Flow and routinesFree

Started by trigger

Started by trigger checks which of a routine's own triggers began this run. That lets one routine react a little differently to a hotkey, a schedule or an app opening without keeping separate copies.

How-to guides

Build this routine in KeyRoutines

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