DIY animated desktop

Tech B

Thought someone might like this little script. Its an animated wallpaper.
You'll need to draw the frames though. I used Windows paint to make the frames. I drew two stick people fighting. You'll need to know the basics about animation. I saved each picture as .bmp It worked with .jpg but had a little lag.

The original background will appear upon logging off or shutting down. To avoid this you'll need to use ActiveDesktop extensions. Or put this script in the startup folder.

It can be used as a slide show too, by changing the time.sleep()

Any questions feel free to reply.

About the Author

I love computers. And I love learning. The only problem I face is time isn't cheap.

I curently work at Subway until I am done with school. I am the sub slinging master!!!!!

import ctypes, time

p = 'Path\\to\\picture\\folder'

pic = 1

while 1:

  ctypes.windll.user32.SystemParametersInfoA(SPI_SETDESKWALLPAPER, 0, "C:\\Users\\owner\\Desktop\\techWall\\"+str(pic)+".jpg", 0)
  if pic == 21: # number of pictures in folder
    pic = 1
  pic += 1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.