Quantcast
Channel: Windows Desktop Development for Accessibility and Automation forum
Viewing all articles
Browse latest Browse all 585

Surrounding native window handle of UI Automation element

$
0
0

Hello,

Is there any possibility to get the window containing an UI Automation element ?

ProcessId property gives me a process where the element comes from , but many applications have more than one native windows and I cannot match the element to window.

One possibility is to use TreeWalker and search for the parent which implements NativeWindowHandle property, but it does much more than I want. It iterates over each parent element what may result in slow run and increased CPU consumption.

I would like to see IUIAutomation.HandleFromElement to be almost the opposite of IUIAutomation.ElementFromHandle.

Thanks.


Viewing all articles
Browse latest Browse all 585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>