简体   繁体   中英

How to Change the Lockscreen image in windows 10 using python?

I have changed the desktop wallpaper using ctypes.windll.user32.SystemParametersInfoW(20,0,wallpaper_image,0)

Like wise to change lockscreen image using python.

  1. Extract igcmdWin10.exe from the ImageGlass ".Zip" release from the github repository .
  2. Put it in the same folder as your python script

Insert this code:

import os

src = r"C:\image-file.jpg"
os.system(f'igcmdWin10.exe setlockimage {src}')

The official documentation for reference: ImageGlass: Command line utilities

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM