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.