With tons of help from @Nige_S, we managed to get this going and I think it's pretty slick.
Usage:
Select some macros in a group and trigger this macro. It will create a - Show Palette macro at the top of the group, populated with the pre-selected macros and set to be triggered by § (under the Escape key):
If there's a snappier way to move the palette I'd love to know about it. As far as I can tell, the Manipulate a Window action doesn't recognise palettes as windows of the Keyboard Maestro Engine.
Thank you @noisneil
Yes, I'd like to move the mouse programmatically.
Right... move the palette in respect to the mouse would work.
(or alter the position of the mouse in the macro)
The reason for this is: some of the palette's will have 10 items, others will have 20 items. Chances are in most cases I'll usually use the 1st, 2nd or 3rd option so I'd like to be able to 'dial in' where the mouse ends up on the palette and have it located on the usual choice/s.
I don't have time now, but later I'll 'break down' the parameter of %CurrentMouse% and alter it to make the x and y what I would want it to be, then pass that to the sub-routine.
I don't want to alter the sub-routine for obvious reasons.
All good, appreciate your time and expertise here, and on the forum in general!
You could use the AppleScript above and add an action to move the mouse slightly, relative to its current position. This might be easier, although either option will work.
I've spent time trying to 'set' the mouse to x + 50, and y -100 in relativity to where the mouse originally was and I can't get it.
I don't want to set it in the sub-routine because the I'll have to have different sub-routines for each palette. I'd like to be able to set a variable in the main macro.
Hey @_jims , thanx.
It's not seeing the palette window as the #1 window.
With 0,0 set for the move amount, the mouse is moving way away from the palette.
The macro is great. Very useful. Thanks very much. I discovered that I am constantly subtracting (easy) and adding new macros to the palette which forces me to re-start the whole process. The process of adding and subtracting macros is I think by definition part of these types of palettes. If I simply click on "+" to add a new macro, it defeats the purpose of your macro. Would you have a workaround ?thank you
thank you very much. Unfortunately it does not work.
KM 11.0.4 Sequoia
2025-11-24 19:42:31 Execute macro “Show Palette of Selected Macros - Create Display SHIFT CTRL OPT §” from trigger The Hot Key ⌃⌥⇧Section Sign is pressed
2025-11-24 19:42:42 Execute macro “01)- Add Macros to a 'Show Palette of Macros' Macro” from trigger The Hot Key ⌃⌥⌘Section Sign is pressed
2025-11-24 19:42:42 Action 100306171 failed: Select Menu Item failed to find target menu item View➤Disable Macro
2025-11-24 19:42:42 Select Menu Item failed to find target menu item View➤Disable Macro. Macro “01)- Add Macros to a 'Show Palette of Macros' Macro” cancelled (while executing Select “Disable Macro” in the Menu “View” in Keyboard Maestro).
2025-11-24 19:42:53 Execute macro “Engine LOG in Console” from trigger Macro Set Palette
I tried both failure aborts macro (1st try below) and disable macro (2nd attempt below) and neither works. Thanks again for all your efforts.
2025-11-25 07:14:43 Execute macro “01)- Add Macros to a 'Show Palette of Macros' Macro” from trigger The Hot Key ⌃⌥⌘Section Sign is pressed
2025-11-25 07:15:08 Action 100306176 failed: Execute an AppleScript failed with script error: text-script:191:216: execution error: Keyboard Maestro got an error: a kmmacros file or XML must be supplied (-1)
2025-11-25 07:15:08 Execute an AppleScript failed with script error: text-script:191:216: execution error: Keyboard Maestro got an error: a kmmacros file or XML must be supplied (-1). Macro “01)- Add Macros to a 'Show Palette of Macros' Macro” cancelled (while executing Make New Macro).
2025-11-25 07:15:37 Execute macro “Engine LOG in Console” from trigger Macro Set Palette