0

I was trying to automate changing my wallpaper with python and came across this solution.

    import ctypes
    
    SPI_SETDESKTOPWALLPAPER=20

    ctypes.windll.user32.SystemParametersInfoW(SPI_SETDESKTOPWALLPAPER, 0,r'E:\Pictures\DSC_0594.jpg', 0)

However, the wallpaper disappears after the pc is shutdown.Is there a way to make sure this doesn't happen.

prasad
  • 1
  • 1

1 Answers1

1

Well you can copy your file to-

C:\Users\USERNAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

so that your program opens every time when you open your windows.

Peter
  • 11
  • 1