Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Wallpaper Slide Show - Python Code Bank


Wallpaper Slide Show
This cycles through a given picture folder and sets the images as the background. Windows only. Randomized images not supported.
                import ctypes, time, os

print "Save As .pyw and place in startup folder"

p = "C:\Path\To\Picture\Folder"
SPI_SETDESKWALLPAPER = 20
os.chdir(p)


while 1:
  for i in os.listdir(os.getcwd()):
    ctypes.windll.user32.SystemParametersInfoA(SPI_SETDESKWALLPAPER, 0, i, 0)
    time.sleep(600)
            
Comments
Sorry but there are no comments to display