Wallpaper Change With Python

Wallpaper Change With Python script make changes to the Registry Settings of Windows System. Command line utility to change wallpaper by Python can be wrote using this script. Just Enter the full Path of image and it will make necessary changes in registry to change Wallpaper.

 

Wallpaper Change With Python

Here is the Script For Change Wallpaper With Python

import os
print "Wallpaper Changer Command Line Utilityn type help for get help...nn"
path = raw_input("Enter Path(full path with name) of New Wallpaper Image: ")
if path=="help":
    print '"Enter Full Path Of Image e.g. D:\Images\smile.jpg n 
This utility only works in Windows Systems n 
Wallpaper Change Works with registry settings of system so,n 
the wallpaper may change after Refresh or Reboot of System "'
else:
    reg_key = '"reg add "HKEY_CURRENT_USERControl PanelDesktop" /v Wallpaper /t REG_SZ     /f /d "'+path
    os.system(reg_key)
    os.system("RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters")
    print "Process completed ... wallpaper change after refresh"

 

Above code describes Wallpaper Changes With Python.

wallpaper changes after restart in Windows 8. If it works in XP without restart, then please tell us…