如何在任何默认浏览器中捕获每个窗口句柄? [英] How to catch each window handle in any default browser?

查看:341
本文介绍了如何在任何默认浏览器中捕获每个窗口句柄?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,我想捕获任何默认浏览器的Windows结构.
但是对我来说很难...

Now I want to catch windows-structure of any default browser.
But it is difficult to do for me...
help me!.

推荐答案

到目前为止,您可以按照Niklas的建议使用Spy ++.

但是,在主浏览器窗口(显示html的窗口)内,您看到的元素不是窗口(HWND);它们是浏览器为显示而创建的元素,通常被称为DOM结构(为此使用google).

如果这是您要查看的,最好的选择是使用MSAA.有关详细信息,请参见此处: XMSAALib-用于检索可访问性(MSAA)信息的非MFC类 [ ^ ]
Up to a point, you can use Spy++ as Niklas suggested.

However, within the main browser window (where the html is displayed) the elements you see are not windows (HWNDs); they are elements that the browser creates for the purpose of display, and are commonly referred to as the DOM structure (google for it).

If this is what you want look at, your best bet is to use MSAA. See here for details: XMSAALib - a non-MFC class to retrieve accessibility (MSAA) info[^]


使用Spy ++工具在Window程序中查找窗口结构.
Use the tool Spy++ to find window structures in Window programs.


这篇关于如何在任何默认浏览器中捕获每个窗口句柄?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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