如何使用 C# 获取 Mozilla 浏览器的当前位置 URL?
可能的重复:
获取 Firefox URL?
我在开发 Windows 应用程序以获取正在运行的 Mozilla Firefox 的当前 URL 时遇到问题浏览器。 是否可以获取 Mozilla Firefox 浏览器的活动 URL?
Possible Duplicate:
Get Firefox URL?
I am facing a problem while developing my Windows application for getting current URL of running Mozilla Firefox browser. Is it possible to get active URL of Mozilla Firefox browser?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试使用辅助功能 API 来读取位置栏。
Mozilla 0.x/1.x、Netscape 6.x/7.x 和 SeaMonkey 1.x/2.x 通过将当前 URL 发布到窗口中隐藏的编辑控件,使您可以更轻松地完成此操作。
You could try using the accessibility APIs to read the location bar.
Mozilla 0.x/1.x, Netscape 6.x/7.x and SeaMonkey 1.x/2.x make this easier for you by posting the current URL to a hidden edit control in the window.
moz=DDE&&||ui peeking
IE=com
Moz 注意:选项卡式浏览无法判断当前打开了哪些 url,您只能轮询/监视 Windows url
moz=DDE&&||ui peeking
IE=com
Moz Beware:Tabbed browsing makes it impossible to tell which urls are currently open, you can only poll/monitor a windows url