How click gear of an action?

This doesn’t work for me because the mouse could be anywhere. I am inserting the comment via a macro, invoked via a keystroke. And selecting the macro is cheating. I don’t see any way to select the macro programmatically. I want this fully automated.

An odd thought I had a while ago – is there a way to put an action in a clipboard that is never changed so that you could have another macro that pastes the action from that clipboard?