Since KM10 I have to rework many Macros caused to something that has changed.
When I was using KM 9.2 and used the Token %ExecutingThisMacro% in a Main Macro - I got only the Macro Name.
The same but only asking for the UUID using the Token %ExecutingThisMacroUUID% - I got only the UUID of the Macro.
For my Setup I then used:
Var "Local__MacroUUID" => "%ExecutingThisMacroUUID%"
Var "Local__MacroName" => "%ExecutingThisMacro%"
Var "Local__MacroParams" in Execute a Macro with Parameter => "%Variable%Local__MacroUUID% & %Variable%Local__MacroName%"
This way I had the ability to set the Sub-Macro up as:
Var "Local__TriggerMacroUUID" => "%TriggerValue[1]%"
Var "Local__TriggerMacroName" => "%TriggerValue[2]%"
I then used these Infos to switch the routines in the Sub-Macro based on the Main Macro.
Now when I use this kind of approach I get both - the Name and the UUID when using the Token %ExecutingThisMacroUUID% .
What can I do to get the old functionality of my Macros back without using the new Subroutine-Feature ??
In order for %TriggerValue[1]% and %TriggerValue[2]% to work properly you need to make %TriggerValue% into a KM array, which you must do by separating the two values with a comma like this:
You need to create a KM array using a comma as separator, not a newline as I've shown.
When you remove these errors your test macro gives this output:
If you want to use KM arrays and you're unsure about them, have a look at the KM wiki here (about halfway down the page): manual:Variables [Keyboard Maestro Wiki]