c# - MSAA finds controls UI Automation doesn't -
i'm working on automating windows application. i'm using teststack white framework. i've hit problem. program has 'window' object cannot see inside of. white shows no controls inside of it. inspect.exe shows no controls inside of either when running in ui automation mode. if switch inspect msaa see controls inside fine. there anyway me use msaa c# handle on these controls?
if can identify msaa functions need, can use p/invoke call them c#. here's example article doing msaa:
http://www.codeproject.com/articles/38906/ui-automation-using-microsoft-active-accessibility
also, pinvoke.net can used identify iaccessible (msaa) functions:
http://www.pinvoke.net/search.aspx?search=iaccessible&namespace=[all]
here's answer along lines:
finally, alternative p/invoke, might able use tlbimp.exe create wrapper assembly oleacc.dll, , access msaa functions through it. i'm not sure if works msaa, it's worth try.
as example, here's c# hello world example wrote shows how use ui automation com interface c#, using assembly created tlbimp.exe:
as mentioned in comments in file, of windows 7.1 sdk, generating assembly tlbimp.exe looked this:
"%programfiles%\microsoft sdks\windows\v7.1\bin\tlbimp.exe" %windir%\system32\uiautomationcore.dll /out:interop.uiautomationcore.dll
Comments
Post a Comment