I created a macro and I wanted to ask if this is an implemented feature of KM (and I'm missing out on it) or if this is the only way to do it.
Here is what it does:
I press the F1 key and the macro goes to a 'first layer' or subscope. In this layer, I have three keys that trigger different actions: F1 -> Action 1, "R" -> Action 2, ESC -> cancel macro.
Technically you could go further and insert another 'layer', e.g.: after R is pressed "O" will trigger a different action than "keypad-1", etc.
As @vincent_ardern indicated, the “Keyboard Maestro way” to do this is with a Conflict Palette. Just give each of your macros the F1 hot key, and then like Keyboard Maestro handle the keys for differentiating between them.
Otherwise you can do what you want using various combinations of either Macro Group configurations, or macros that enable and disable other macros. It's made tricky by using the F1 at both “layers” because pressing the F1 the first time will have to disable itself, but then it needs to be re-enabled later, or alternatively it will have to detect that it is in layer 2 state already and behave differently.
That sounds great! Thanks for your answers!
The 'Maestro way' with the conflict palette works great and I use it a lot.
The slight advantage you get with the macro I created is that it allows to incorporate the whole keyboard instead of just alphabetical and numerical keys; not necessary for some, which I understand, but it can help free up the keyboard a little bit.
@peternlewis: true, you can see in the screenshot the first and last actions en- and disable the macro, so the f1 key is not triggering the macro into a loop.
If you're referring to the initial macro and the question I had about it: it always worked perfectly, I just wasn't sure whether I'm working too hard for something that might be an automated feature in KM.
True, it's a lot of macros but my professional workflow is centered around KM and it makes me incredibly efficient. Taking a guess, I'm pretty sure users like JMichaelTX or, of course, peternlewis have similar sizes, if not bigger.