Tag: 谷歌浏览器

Chrome Style C#应用程序?

我不是在谈论远景玻璃function,我已经知道如何实现这一目标。 我正在谈论的function是向标题栏添加控件,就像Office 2007对标识和工具栏一样。

原生消息Chrome

我试图在我的chrome扩展和我的c#应用程序之间获取Native Messaging。 javascript工作正常,但我收到此错误: 与本机消息传递主机通信时出错。 正如我从任务管理器中看到的那样,应用程序确实与扩展一起启动。 这是我的c#代码。 private static string OpenStandardStreamIn() { //// We need to read first 4 bytes for length information Stream stdin = Console.OpenStandardInput(); int length = 0; byte[] bytes = new byte[4]; stdin.Read(bytes, 0, 4); length = System.BitConverter.ToInt32(bytes, 0); string input = “”; for (int i = 0; i > 0) & […]

以编程方式访问Google Chrome主页或“开始”页面

Chrome在哪里保存主页或开始页面url? 我想使用C#以编程方式访问它。

如何从Chrome和Firefox获取打开网页的url?

我正在编写一个系统托盘应用程序,需要检查基于内部网络的应用程序是否已打开。 我可以使用以下方法检查IE: SHDocVw.ShellWindows shellWindows = new SHDocVw.ShellWindows(); string filename; bool sdOpen = false; foreach (SHDocVw.InternetExplorer ie in shellWindows) { filename = Path.GetFileNameWithoutExtension(ie.FullName).ToLower(); if (filename.Equals(“iexplore”)) { string[] urlParts = (ie.LocationURL.ToString()).Split(‘/’); string website = urlParts[2]; if (website == “myApp:8080”) { sdOpen = true; }; } } if (sdOpen) { Console.WriteLine(“App is open”); } else { Console.WriteLine(“App is […]