Trigger only when palette is active?

Hello guys!

I wanted to know if you can first have a palette active, and then the macros that are shown to have a trigger like "1", "2", "3", etc, but that each trigger only works whenever the palette is active. Meaning that whenever the palette is not active the macros will not fire whenever I type "1", etc.

Is this possible?

Thanks!

Put the macros in a group set to show a palette for one action:

Set the hotkeys for each macro to the characters you'd like to trigger them by:

CleanShot 2022-09-20 at 15.18.19@2x

Hit the palette trigger, followed by the macro trigger. In this case, ⌃§ followed by 1, 2 or 3.

@noisneil Very interesting, I didn't know that and I can't reproduce it unfortunately. Do I understand correctly: with "section sign" the palette is called and the macros are then triggered with ⌃§+number?

Quoting straight from the KM manual:

You can configure the Macro Group so that the macros are only active while the palette is displayed, so if you only display it occasionally, especially only for one action, then they can have very simple hot keys (like plain letters for example).

So section sign to display the palette, which enables the macros in the Group for one action, and they can be triggered with "1", "2", or "3".

I guess that if you wanted more control you could have a toggler macro that, when triggered, iterated over the macros you wanted to make available, enabled them, then used a "Show Palette" action to display them -- when triggered the next time it hides the palette and disables those same macros.

Understood thanks! But I'm not sure if that's what @David_Chavez wants. I understand him like this. He wants to see a palette whose triggers don't work automatically. Only when he "activates" the already visible palette the triggers should fire.

No idea what his use case is ... maybe I understand it wrong.

I read it completely the opposite way round -- that the macros would only be enabled when the palette was on-screen. But I think you're more likely right.

I don't use palettes, but I know you've had a lot of experience with them. Is there such a thing as an "inactive" visible palette?

He will tell us what exactly he means. :sweat_smile:

I don't think so. What is possible, of course, are macros without key triggers, which are triggered only by clicking. :man_shrugging:

Thanks to all guys! Thanks @noisneil that is exactly what I wanted! Sorry for my bad English, didn't explain correctly what I needed. Thanks for all your help, it's been super useful!

1 Like