通过桌面应用程序控制网站

发布于 2024-09-25 11:23:15 字数 109 浏览 2 评论 0原文

桌面应用程序是否可以与影响用户浏览器的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

帅哥哥的热头脑 2024-10-02 11:23:15

您可能需要考虑从应用程序中实现浏览器的自动化。当您使用 .NET 时,WatiN 是一个不错的选择:

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:

WatiN

望笑 2024-10-02 11:23:15

要使类似的功能正常工作,您需要让您的网络应用程序定期调用更新,然后进行适当的更改。

您的桌面应用程序可以向您希望访问数据的任何 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文