开发者

Screensaver to cycle through webpages?

开发者 https://www.devze.com 2022-12-11 07:32 出处:网络
Does anyone have any suggestions for how to create a screensaver that can cycle through some webpages?I would like to create a screensaver that displays various dashboard and statistics pages that are

Does anyone have any suggestions for how to create a screensaver that can cycle through some webpages? I would like to create a screensaver that displays various dashboard and statistics pages that are available in our Hudson CI server. This is a windows machine, with firefox a开发者_如何转开发nd IE available.

Extra bonus points if I can do it in ruby! :-)

Cheers, Mike


I programmed a lot of screensavers in Delphi, but I think the following should be applicable to all sorts of development environments. You create the main form of your screensaver and put an IE-control on it (or if your development environment does not support it, an OLE-container) and then create a timer which changes the webpage shown by the IE-control. Sorry no solution in ruby....


Ok, so after a few false starts I found a pretty simple solution. I used Visual Studio Express Edition to create a windows forms application. You just need to drag a WebBrowser control onto the form and resize to full screen at startup. Then all you have to do is hook up the event handlers to deal with the mouse and keyboard.

Some more details here:

  • Blog post on how I made the screensaver
  • Source code on github
0

精彩评论

暂无评论...
验证码 换一张
取 消