Will not select a menu item

I have a very short macro, just a hotkey which selects a menu item. But KBM doesn't select the menu item after the trigger. I put some checks in to make sure the macro is getting invoked - it is - and it executes every step in the macro except the select of the menu item. That step was created by directly selecting the men item while setting up the macro step. Using Ventura, with the problem occurring on a couple of Macs.

Check what error is being reported in the Engine.log file.

Cross platform applications, do not necessarily update or even build their menu bar until the menu is selected with the mouse. When asked for the menus via the accessibility subsystem, the menus are either not there, or not currently correctly built for the context (eg, menus may be disabled or invisible when they should not be).

Options to force the application into updating its menus include:

  • Switch out and back to the application, and then use the Select Menu Item action.
  • Use the Show Menu variant (leave the item field blank) of the Select Menu Item action to show the menu item first, and then the Select Menu Item.
  • Simulate a click in the menu bar, and then use the Select Menu Item action.
  • Desperate measures, simulate a click in the menu bar, and then use arrows and typeahead (Insert Text by Typing) to select the menu item.
1 Like