processMenuCommand

>>-processMenuCommand--(--+-------+--,--+-------+--,------------>
                          +-title-+     +-popup-+

   +-,-------+
   V         |
>----submenu-+--,--menuItem--)---------------------------------><

Selects an item of the menu or submenu of the specified window title. You can specify as many submenus as necessary to get to the required item.