[英]Opening a desktop app from Gtalk
I am kinda having a strange requirement. 我有点奇怪的要求。 I have a google talk bot & a standalone app installed in the PC.
我在PC中安装了Google Talk机器人和独立应用程序。 On giving some command to the bot, the bot should be able to send a link clicking on which it opens the app on the desktop.
在向bot提供一些命令后,该bot应该能够发送一个链接,单击该链接可以在桌面上打开该应用。
For eg. 例如。 I have downloaded an app called MyCalendar.
我已经下载了一个名为MyCalendar的应用程序。 the google bot should give me a link, clicking on which MyCalendar app should open in desktop.
谷歌机器人应该给我一个链接,点击哪个MyCalendar应用程序应该在桌面上打开。
I don't know if that's possible really. 我不知道这是否真的可能。 I have figured one way of doing this by giving the URL of a page on my server opening which it opens the desktop app like how Apple Appstore website opens ITunes.
我想出了一种方法,方法是在服务器打开页面上提供页面的URL,该页面可以打开桌面应用程序,就像Apple Appstore网站打开iTunes的方式一样。
Is there any there better way to do it? 有什么更好的办法吗?
Thanks 谢谢
What you are really asking is: how to register a desktop app to handle custom url scheme? 您真正要问的是:如何注册桌面应用程序以处理自定义网址方案?
This is really OS dependent: 这实际上取决于操作系统:
OS X: http://cocoadev.com/wiki/HowToRegisterURLHandler OS X: http : //cocoadev.com/wiki/HowToRegisterURLHandler
Windows: http://msdn.microsoft.com/en-us/library/aa767914.aspx Windows: http : //msdn.microsoft.com/en-us/library/aa767914.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.