Control website via desktop application
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
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
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.
精彩评论