Finds the id of a menu item mong the menus in the menu bar by matching a menu name and an item name. If a matching menu item is not found, -1 is returned.
Special menu codes are stripped out of item-name and the menu item names before matching.