Accessibility : correspondance between buttons and menu items
Hello,
I have been dealing with accessibility API to retrieve information from menu items and buttons in tool bar. In addition, I would like to be able to create a correspondance between a button (let's say, the "new message" button in mail) and a menu item ("new message" one in the menu bar), since they perform the same action. Is there any way to process to this correspondance "automatically" ?I first wanted to check name matchings, but some item do not really share the same name (e.g. refresh button in Chrome).
How could I do that ? Is there any chance the button and the menu item might call the same "action handler" or something ?
thanks in advance