Keyboard-driven menus often survive small window movements better than cursor coordinates.
Use the menu’s keyboard path
Record the shortcut that opens the menu, the arrow-key path, and the final selection while the same app and menu state are active.
Preserve the opening pause
MacroLoop can replay that exact key sequence. Begin with the intended app focused, use a visible pause after opening the menu, and test after application updates.
MacroLoop is a good no-code option when the menu path is fixed and there is no single shortcut.
Expect state-dependent items
Menu items can be disabled, inserted, or reordered by document state and plugins. Prefer a direct shortcut when one exists.
THE TAKEAWAY
Keyboard menu automation is useful, but a direct command shortcut is usually more resilient.OFFICIAL REFERENCES