如何从浏览器运行桌面应用程序? [英] How to run desktop app from browser?

查看:459
本文介绍了如何从浏览器运行桌面应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从浏览器启动程序(如战场,当您看到带有启动应用程序确认的对话框时)。我应该扩展程序还是使用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.

您可以在此处检查:

https: //weblogs.asp.net/morteza/如何从一个网页运行一个桌面应用程序

这篇关于如何从浏览器运行桌面应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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