Python-UIAutomation-for-Windows icon indicating copy to clipboard operation
Python-UIAutomation-for-Windows copied to clipboard

MS Office/Word 2010: Getting AcceleratorKey and AccessKey from the ribbon tab

Open GHSoCoder opened this issue 4 years ago • 1 comments
trafficstars

Hello @yinkaisheng,

many thanks for all your efforts! Started automation.py with parameters -t10 -c, then… Selected with cursor "Start" tab: ControlType: TabItemControl ClassName: NetUIRibbonTab AutomationId: Rect: (1979,144,2031,167)[52x23] Name: Start Handle: 0x0(0) Depth: 0 SelectionItemPattern.IsSelected: True SupportedPattern: LegacyIAccessiblePattern SelectionItemPattern

Both strings control.AcceleratorKey and control.AccessKey are empty. Why?

Any hints are highly appreciated!

Greetings GHSoCoder

GHSoCoder avatar Jun 04 '21 13:06 GHSoCoder

Check Microsoft Inspect.exe. Does it show the same result? If Inspect shows the same result, maybe Word doesn't implement it.

yinkaisheng avatar Jun 11 '21 02:06 yinkaisheng