如何从浏览器运行桌面应用程序?
问题描述:
我需要从浏览器启动程序(如战场,当您看到带有启动应用程序确认的对话框时)。我应该扩展程序还是使用javascript的本机方法?
I need to launch program from browser(like battlefield when you see dialog with confirmation of starting app). Should I make an extension or there is native way to do it with javascript?
答
如果基本思想是启动桌面Web浏览器中的应用程序,第一步是在Windows中创建新的注册表并设置URL自定义协议的路径。如果需要的话,还可以通过更改应用程序中的控制台参数并将参数附加到html文件中来发送参数。
If the basic idea is to launch a desktop app from the web browser, the first step is to create a new Registry in Windows and path a URL Custom protocol. And if is you need it you can also send parameters by changing console arguments in your app and append the parameters in your html file.
您可以在此处检查: