Click cursor to where it was before macro was executed.....?

So I execute a macro. Is there a command available that will cause the cursor to click on the spot that it was prior to executing that macro?

If I understand correctly, I think this will do what you want it to do…

Download Macro(s): Return mouse and click.kmmacros (3.5 KB)

Macro screenshot

Macro notes
  • Macros are always disabled when imported into the Keyboard Maestro Editor.
    • The user must ensure the macro is enabled.
    • The user must also ensure the macro's parent macro-group is enabled.
System information
  • macOS 13.6.5
  • Keyboard Maestro v11.0.2

Basically, you just need two commands around your current macro. At the very beginning, we save the mouse location. Then your macro does its thing. At the end, Keyboard Maestro moves the mouse back to the saved location and clicks.

-rob.

1 Like

This is positively BRILLIANT, Rob! What an incredible, profound game changer indeed! Thank you!

Glad to have been able to help!

-rob.