Is there a way to automatically populate a "prompt with list" action with the macros contained in a macro group?

I want to use the list to trigger macros.
I would also like to know what I have to put in the list to be search the list and trigger a macro.
It would be too tedious to populate manually, so one aspect of the question is "automatic".

thanks very much

action:Prompt With List [Keyboard Maestro Wiki]

Solved by the excellent @Zabobon at Wish list: "trigger macro by name" action, add option to limit search to a macro group - Questions & Suggestions - Keyboard Maestro Discourse

I know your problem has been solved thanks to @Zabobon but your request made me think that producing such a list might be useful in other circumstances, so I wrote a subroutine to do it.


thanks very much. I am currently trying to understand and test your macro and wll get back to you.