Spy++/Inspect 中不显示什么类型的控件?

编程入门 行业动态 更新时间:2024-10-28 02:27:27
本文介绍了Spy++/Inspect 中不显示什么类型的控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我们正在开发一个 Windows 桌面应用程序,该应用程序从其他应用程序的其他控件中提取值.我们所拥有的对于大多数桌面应用程序都非常有用.我注意到有些控件没有出现在检查和 Spy++ 中.例如,在 GP 2015 客户端中,只有少数控件可在 Spy++ 和 Inspect 中寻址.大多数不会显示在 Spy++ 或 Inspect 中的相应树中.哪些类型的控件未显示在 Inspect 中,并且要获得额外奖励,我们如何与他们交谈?

We are working on an Windows Desktop application that pulls values from other controls on other applications. What we have works great for most desktop applications. I have noticed that some controls don't show up in inspect and Spy++. For example, in GP 2015 client only a handful of the controls are addressable in Spy++ and Inspect. The large majority wont show in the repective tree in Spy++ or Inspect. What type of controls don't show in Inspect and for extra credit, how can we talk to them?

提前致谢,史蒂夫

推荐答案

Spy++ 仅适用于具有 HWND 关联的控件.

Spy++ only works with controls that have an HWND associated with them.

Inspect 仅适用于公开给 UI 自动化 通过 IAccessible, IUIAutomation,以及其他相关接口.

Inspect only works with controls that are exposed to UI Automation via the IAccessible, IUIAutomation, and other related interfaces.

因此,任何定制的非窗口非自动化控件都不会出现在任一工具中.外部世界无法使用此类控件,因此您无法与它们通信或操纵它们.只有拥有应用程序可以,因为只有它知道它们是什么以及如何与它们交互.

So, any custom-made non-windowed non-automatable control will not appear in either tool. Such controls are not available to the outside world, so you cannot communicate with them, or manipulate them. Only the owning app can, since only it has knowledge of what they are and how to interact with them.

这篇关于Spy++/Inspect 中不显示什么类型的控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-26 01:41:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1126903.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控件   中不   类型   Spy   Inspect

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!