This feature must be there but I’m missing it: Right-clicks are recorded by location, and I’d like a right click that assumes my pointer is located where I want it. And actually, that’s true of any mouse-based action that captures a location: Please just assume that I’m already pointing to the correct location.
Many apps have keyboard controls that can be executed from a right-click, as in right-click > G > Return does what you want, but if the window moves around, your macro might not work.