.net - chrome_omniboxView 类不再可用?

标签 .net winapi google-chrome ui-automation

FindWindowEx(Hwnd, 0, "Chrome_OmniboxView", Nothing)

Chrome_OmniboxView 不再可用。我如何获取 google chrome 浏览器的当前网址?

最佳答案

我刚刚编写了一个 Chrome 扩展来解决这个问题。我已将其放入 chrome 网上商店(免费):https://chrome.google.com/webstore/detail/add-url-to-page-title/ghpeimfjbonkimelnkbgekmcboomkgmi

它所做的只是将页面的 html 标题转换为以下格式: 原标题 |url:[http://www.the-url.com]

Chrome 将其放入窗口标题中,您可以使用 NativeWIN32.GetWindowText(handle); 读取该标题

关于.net - chrome_omniboxView 类不再可用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18431396/

相关文章:

c# - GetLastInputInfo 的整数环绕问题

windows - 如何使用 Win32 API 获取 (Java) 进程的退出代码?

javascript - Chrome Javascript 日期构造函数错误?

c# - .Net 的免费/开源应用程序换肤解决方案?

c# - 连续测试/驼鹿 : Here Be Dragons and general overlay questions

.net - Redis 是否提供过期和过期回调?

powershell - 如何在 Go 中使用 VirtualQueryEx 读取检索进程内存信息?

google-chrome - WebStorm Debug模式未命中断点

javascript - 如何使用深色主题检测 Google Chrome 开发者工具?

.net - 在 C# 项目中覆盖 BuildDependsOn 时遇到问题