【问题标题】:How to Change the Lockscreen image in windows 10 using python?如何使用python更改Windows 10中的锁屏图像?
【发布时间】:2021-04-09 03:39:33
【问题描述】:

我已经用ctypes.windll.user32.SystemParametersInfoW(20,0,wallpaper_image,0)更换了桌面壁纸

像使用 python 更改锁屏图像一样明智。

【问题讨论】:

    标签: python windows lockscreen


    【解决方案1】:
    1. ImageGlass ".Zip" release from the github repository 中提取igcmdWin10.exe
    2. 把它和你的python脚本放在同一个文件夹中

    插入此代码:

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

    参考官方文档:ImageGlass: Command line utilities

    【讨论】:

      猜你喜欢
      • 2018-11-07
      • 1970-01-01
      • 2016-05-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-15
      • 1970-01-01
      相关资源
      最近更新 更多