需要使窗口应用程序像下面一样工作 [英] Needs to make window application that work like below

查看:100
本文介绍了需要使窗口应用程序像下面一样工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要一个在后台作为Windows服务运行的程序。每当打开新标签页时,此程序都会加载我选择的URL。它在后台监听,每当用户访问chrome:// newtab时,程序会将用户重定向到我的URL。在以下情况下也会打开新选项卡:

need a program that runs as a Windows service in the background. This program loads a URL of my choice whenever a new tab page is opened. It listens in the background and whenever the user visits chrome://newtab, the program redirects the user to my URL. The new tab is also opened when:

推荐答案

该服务无法按照您的需要劫持用户浏览器。



由于about:页面实际上并未导航到某个页面,因此您的服务永远不会知道所创建的新标签页。



这不是服务应用程序。您所谈论的是Chrome特有的功能,唯一有可能实现您想要的功能就是Chrome的插件。



C#Chrome插件 [ ^ ]
The service will not be able to hyjack the users browser like you want.

Since the "about:" pages don't actually navigate to a page, your service will never know about the new tab neing created.

This is NOT a service app. What you are talking about is functionality specific to Chrome and the only thing that has a chance of doing what you want is a plug-in for Chrome.

C# Chrome plugin[^]


这篇关于需要使窗口应用程序像下面一样工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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