I have a large monitor connected to a MacBook Pro. I work from the large monitor, and do file navigation on the MacBook’s built-in monitor, which sits off to the side. I’m trying to create a macro which will activate the Finder, create a new window, and execute the “Move to Built-in Retina Display” command available from the green button at the top of the window. (See attached screenshot) I can’t figure out how to access this command with Keyboard Maestro. Is it possible? Failing that, is it possible to accomplish the same thing in a different way?
M1 MacBook Pro 14-inch
macOS Sonoma 14.0
KM 11.0.1
You can use the Move and Click Mouse action but disable the click part, just do a Move. Specify its starting location at the top left of the frontmost window, then click the Get button and move your mouse to the green button. Wait for the beeping to stop, and the location will appear in the action.
(In your actual macro) your mouse is now hovering, and the menu should appear. Have the macro send Command and Down Arrow, which should select the last item in the list, then have it press Return. You might need a Pause action (or two) to let menus appear.
Note this is untested, but it works great in my head :).