Aquarionics

Saturday 12th July 2003

Refreshing background images in Windows

All I wanted was a background, in Windows, that updated every 10 minutes. Does that seem too much to ask?

Apparently it was, and this is how I had to do it without resorting to external software. Ready?

I have a server that generates an xplanet image every 20 minutes. It used to be my background image when I was in Linux, because linux makes that kind of thing easy. In windows up until XP, though, you have to have “Active Desktop” turned on to use anything other than a bmp as your background, and 1600*1200 backgrounds are non-trivial to shunt around. Plus it loads it on startup and caches it there until shutdown, not optimal for an updating image. The solution to this was a web-page on my server that I set as a background under windows, which said:




[Aquarionics] Aquaricam




resulting in a page that refreshed every 10 minutes. Problem was that it didn’t refresh the image, even with no-cache set on the image itself. Eventually in order to get the image reloaded, I set the script that was generating the image to generate it to a file with a random name between “1.png” and “20.png” and then:





[Aquarionics] Aquaricam






This appears to work. But it’s stupid that I have to do it.


Nicholas 'Aquarion' Avenell is a web developer in London, you can find out more about him or how to get in touch.

There are more Articles, Projects, Journal Entries, Photographs and things that defy description here, too.

If you're looking for something specific, there are Calendar & Category -based lists of everything.

And if you want to follow stuff that appears here, try a Syndication Feed, or the generic Feed of everything.


Aquarion's last Twitter was: [updating]
Twitter last updated


More Articles:

[RSS Icon]
[ESF Icon]
[CDF Icon]

That which is relevant:


Explain Ads
© 2000 to 2008 inclusive Nicholas Avenell
All comments are the property of their creators, published with permission
(Unless otherwise indicated, the opinions and sentiments expressed on this site are those of the author and not of any organisation of which he is an affiliate, including his employer. Caveat Lector, E&OE. sigh)
0.952 seconds, 8 queries, 2.59Mb on Thu, 02 Oct 2008 03:40:06 +0000
Generated by Epistula Version 2.0.3