关于Windows应用程序开发和NPAPI插件

发布于 2024-12-02 22:19:28 字数 353 浏览 2 评论 0原文

我计划制作一个应用程序来监视用户访问的网站并对其进行一些计算。

因此,对于每个打开的网站,我开发了一个 google chrome 扩展,它将把 URL 发送到 NPAPI 插件。

问题出在第二部分。NPAPI 插件是否可以将从扩展程序接收到的信息传递到另一个应用程序。我希望在我的应用程序和 NPAPI 插件之间进行双向通信,以便取决于 NPAPI 插件执行的处理应用程序中,NPAPI 插件通知扩展程序更改其应发送的 URL。

PS-我正在使用 firebreath 来开发 NPAPI 插件,如果这样可以更轻松地回答我的问题。

我真的很想要一些关于如何实现这一点的想法。我是编程新手。

非常感谢任何帮助。

I am planning to make an application that monitors the websites visited by the users and performs some calculations on that.

So for every website that is opened,I developed a google chrome extension that will send the URL to a NPAPI plugin.

The problem is with the second part.Is it possible for a NPAPI plugin to pass the information it received from the extension to another application.I want a 2 way communication between my application and the NPAPI plugin so that depending on the processing performed by the application,the NPAPI plugin informs the extension to change the URLS it should send.

PS-I am using firebreath to develop the NPAPI plugin if that makes it easier to answer my question.

I would really like some ideas as to how this can be implemented.I am new to programming.

Any help is greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

自由范儿 2024-12-09 22:19:28

NPAPI 插件可以不受限制地访问本地计算机,因此您的插件可以像任何其他应用程序一样运行其代码。因此,您正在寻找的实际上是两个进程进行通信的一种方式,又称 进程间通信。有很多方法可以做到这一点,您可以在此处找到一些。最合适的取决于您的实际需要,但是在搜索时,不要让 NPAPI 上下文打扰您。您只是想让两个进程进行对话。

NPAPI plugins have unrestricted access to the local machine, so your plugin is running its code like any other application. So what you're looking for is actually a way for two processes to communicate, AKA Inter-Process Communication. There are quite a few ways of doing that, you can find some here. The most appropriate one depends on your actual need, but when searching, don't let the NPAPI context bother you. You're just trying to get two processes to talk.

韶华倾负 2024-12-09 22:19:28

共享内存的使用非常简单。由于您是编程新手,我认为这是正确的方法。您可以在此处找到示例

Shared memory is quite simple to use. Since you're new to programming ,I think this is the way to go. You can find an example here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文