Exec Macro with Parameter

I want to “Exec Macro X with Parameter AAAA” that allows me to do an IF THEN ELSE based on this parameter in the Macro X.

In Macro X:


IF AAAA THEN
do this
ELSE
do nothing

What’s the syntax for this?

That would be an If Then Else action (https://wiki.keyboardmaestro.com/action/If_Then_Else) at the start of the macro that checks the %TriggerValue% token for AAAA. In practice, it should look something like this:

If you want more information on the Execute a Macro action, that can be found here: https://wiki.keyboardmaestro.com/action/Execute_a_Macro

2 Likes