我有两个应用程序,App1和在Windows7客户端上下文中运行的App2。
App1: List files. and allows user to select a file and trigger load file to App2. This is HTML5 application ( Angular 2) hosted in IIS.
App2: Allows to view the files. Native C++ application.
我想将特定的选定文件详细信息从App1发送到App2。我尝试过以下callup选项:
有哪些其他选项可用于将数据从HTML5应用程序传输到在客户端上下文下运行的本机应用程序?
您可以使用Chrome Native Messaging API。请参见此处的示例:https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/docs/examples/api/nativeMessaging
试试这个例子:(你需要为这个例子安装python才能工作。)
如果一切顺利,该应用将启动,您将能够在Chrome和应用之间交换消息。
现在用app2.exe替换native-messaging-example-host.bat并相应地调整脚本。
希望能帮助到你。 :)