没有运行Inspect.exe,Magnify.exe,Narrator.exe中的任何一个,都无法获得最深的IUIAutomationElement [英] Unable to get deepest IUIAutomationElement without one of Inspect.exe, Magnify.exe, Narrator.exe running

查看:128
本文介绍了没有运行Inspect.exe,Magnify.exe,Narrator.exe中的任何一个,都无法获得最深的IUIAutomationElement的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

仅在运行应用程序"X"(Inspect.exe | Narrator.exe | Magnify.exe)时,我才能在Windows应用程序中获取一些IUIAutomationElements.在没有运行"X"的情况下,我尝试从中获取IUAutomationElement的应用程序实际上变成了黑匣子.例如,在Microsoft Excel中,当"X"运行时,我可以获得单元格标识符(A1,D6等).在后台没有'X'的情况下,我得到的最详细的细节是Excel Workbook本身.

我尝试设置uiAccess = true并对应用程序进行签名(使用解决方案

通常,要使UI自动化正常工作,自动化的应用程序必须在相同的http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/Manifest+Manifest~Faqs.txt), moving it to Secure (Program Files) location and that hasn't worked.

FYI : Dev Env : C++ Project, Microsoft Visual Studio 2015, Community Edition.

解决方案

In general, for UI automation to work, the application that is automated must run at same UAC level than the application that automates it.

So for example, if Excel is not ran as admin, the automating application must not run as admin, or if Excel is ran as admin, the automating application must run as admin, etc.

这篇关于没有运行Inspect.exe,Magnify.exe,Narrator.exe中的任何一个,都无法获得最深的IUIAutomationElement的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆