如何在单个浏览器中捕获所有选项卡的URL(mozilla) [英] how to catch all tabs url in a single browser(mozilla)

查看:69
本文介绍了如何在单个浏览器中捕获所有选项卡的URL(mozilla)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想捕获Mozilla浏览器中所有选项卡的所有URL.
谁能指导怎么做.
例如:gmail.com,Facebook.com,yahoo mail.com,这可能是我想要读取该URL并希望存储在我的缓冲区中的网站.

i want to catch all the url''s of all tabs in a mozilla browser.
can any one guide how to do it.
for example: gmail.com, Facebook.com, yahoo mail.com,what ever may be the site i want to read that URL and want to store in my buffer.

推荐答案

您将需要获取浏览器的Window句柄,然后找到某种方法来从每个选项卡中提取URL.假设每个选项卡都是一个窗口,则可以枚举子窗口并依次检查每个窗口.请参见此处 [
You would need to get the Window handle of the browser, and then find some way to extract the URLs from each tab. Assuming each tab is a Window then you can enumerate the child windows and check each one in turn. See here[^] for the various API calls to enumerate windows.


这篇关于如何在单个浏览器中捕获所有选项卡的URL(mozilla)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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