Advertisement
Najeebsk

WALLPAPER3.py

Jan 11th, 2022
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. import os
  2. from os.path import isfile, join
  3. import time
  4. import ctypes
  5.  
  6. folderpath = r"C:\Windows\Web\Wallpaper\Wall"
  7.  
  8. all_files = [ f for f in os.listdir(folderpath) if isfile(join(folderpath, f))]
  9.  
  10. for image in all_files:
  11.     print(image)
  12.     ctypes.windll.user32.SystemParametersInfoW(20, 0, folderpath+ "\\" + image, 0)
  13.     time.sleep(10)
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement