Ready-to-use NPAPI-Plugin to launch external application?

↘锁芯ラ 提交于 2019-12-24 09:28:24

问题


I need to launch an external application from a Google Chrome extension. I need to pass a few parameters from javascript, wait until the external application is done and then use its output in javascript.

I did some reading and this should be possible using an NPAPI plugin (I only care about Windows so far).

Since my C/C++ got very rusty over the years and my requirements are quite simple I was wondering if somebody knows about a ready-to-use NPAPI DLL that does just the one thing I need: Launch an EXE with several parameters and return its output?

I tried Google of course, but didn't find anything. Thanks a lot.


回答1:


It should be rather easy to write such a plugin in C++ with Firebreath. Writing a NPAPI plugin from scratch can be tricky, but luckily Firebreath abstracts away most of the details and makes it much easier.

As a plus, if you base the plugin on Firebreath, in addition to NPAPI on Windows you pretty much get free support for NPAPI on Mac/Linux and ActiveX on Windows.

http://www.firebreath.org



来源:https://stackoverflow.com/questions/4546124/ready-to-use-npapi-plugin-to-launch-external-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!