通过桌面应用程序控制网站
桌面应用程序是否可以与影响用户浏览器的 JavaScript API 进行通信?例如,即使浏览器没有焦点,我也想调用Web服务的JS API。用户可以从桌面应用程序中选择各种功能,并将在浏览器中生效。谢谢
Is it possible for a desktop application to communicate with a javascript API that will affect the user's browser? For example, I would like to call a JS API of a web service even if the browser is not in focus. The user can select various functions from within the desktop application and it will take effect in the browser. thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能需要考虑从应用程序中实现浏览器的自动化。当您使用 .NET 时,WatiN 是一个不错的选择:
You probably want to consider automating the browser from your application. As you are using .NET, WatiN is a good option to do that:
要使类似的功能正常工作,您需要让您的网络应用程序定期调用更新,然后进行适当的更改。
您的桌面应用程序可以向您希望访问数据的任何 Web 界面发出请求。这实际上取决于您如何构建它。
这是现有的应用程序吗?您正在构建新的东西吗?如果能提供更多信息就更具体了。
To get something like that to work you would need to have your web app call for updates on a regular interval and then make the appropriate changes.
Your desktop app can make requests to whatever web interface you wish to access data. It really depends on how you build it out.
Is this an existing app? Are you building something new? More info would be nice to have to get more specific.