How to activate the AcceleratorKey of a Menu using UIAutomation (from Excel)?

108 Views Asked by At

A Google search returns zero examples of how to use an AcceleratorKey in UIAutomation. I am trying to activate the "Open" submenu from a "File" menu by passing the "CTRL+O" accelerator key (InvokePattern).

If anyone knows how to do this please post an example. Thanks.

Edit: Thanks Jimi. I still can't link to the OPEN element. Result is always NOTHING. I tried some of the other menu items and same issue.

Screenshot

Code

0

There are 0 best solutions below