gpt4 book ai didi

firefox - 枚举 IE8 和 Firefox 中的选项卡

转载 作者:行者123 更新时间:2023-12-01 05:38:25 24 4
gpt4 key购买 nike

有没有办法列出出现在 IE8 和 Firefox 的每个选项卡中的文本作为正在运行的进程列表的一部分以及句柄。

我可以用它们的 hwnd 列出所有正在运行的进程,但我无法列出在 IE8 或 Firefox 中打开的所有选项卡,只能列出事件选项卡。

最好在 VB10 Visual Studio 2010

最佳答案

对于 IE,首先添加对 Microsoft Internet Controls 的 COM 引用,然后使用以下代码:

For Each j As SHDocVw.InternetExplorer In New SHDocVw.ShellWindowsClass()
If j.Name = "Windows Internet Explorer" Then
ListView1.Items.Add(j.LocationName) 'j.HWND will return the handle
End If
Next

关于firefox - 枚举 IE8 和 Firefox 中的选项卡,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7309835/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com