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.

Desktop Wallpaper hack


techb's Avatar
Member
0 0

My uncle has a third party desktop changer that changes his wallpaper to pictures from his picture folder. I wanted to do the same with python. This is what I came up with. Windows only… sorry.

import ctypes, time, os

p = "C:\Users\owner\Pictures\goth" #path to your 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)

yours31f's Avatar
Retired
10 0

I believe (xp at least) has this feature…


spyware's Avatar
Banned
0 0

yours31f wrote: I believe (xp at least) has this feature…

No.


stranac's Avatar
Member
0 0

Windows 7 has it, not sure for others.


yours31f's Avatar
Retired
10 0

My girlfriend has it on her new vista laptop, and im pretty sure she had it on her xp desktop. Both personal not professional.