本文定期更换windows壁纸的python程序,很简单,属于自己写着玩的那种,不提供完美的壁纸切换解决方案。
安装pywin32 extensions
安装python2.7后,然后管理员的方式运行cmd,进入python的scripts目录,我的是C:\Python27\Scripts
cd /d C:\Python27\Scripts
然后敲入:python pywin32_postinstall.py -install(先确保在环境变量PATH中设置好了python.exe的目录)
C:\Python27\Scripts>python pywin32_postinstall.py -install
Copied pythoncom27.dll to C:\Windows\SysWOW64\pythoncom27.dll
Copied pythoncomloader27.dll to C:\Windows\SysWOW64\pythoncomloader27.dll
Copied pywintypes27.dll to C:\Windows\SysWOW64\pywintypes27.dll
Registered: Python.Interpreter
Registered: Python.Dictionary
Registered: Python
-> Software\Python\PythonCore\2.7\Help[None]=None
-> Software\Python\PythonCore\2.7\Help\Pythonwin Reference[None]='C:\\Python27\\
Lib\\site-packages\\PyWin32.chm'
Pythonwin has been registered in context menu
Shortcut for Pythonwin created
Shortcut to documentation created
The pywin32 extensions were successfully installed

本文介绍了一个简单的Python程序,用于定期更换Windows壁纸。通过安装pywin32 extensions和PIL库,利用win32gui.SystemParametersInfo等函数实现壁纸更换功能。程序示例中展示了如何设置每小时更换一次壁纸。
&spm=1001.2101.3001.5002&articleId=78239904&d=1&t=3&u=1a573ee7802e46aab2f73824dccd8979)
676

被折叠的 条评论
为什么被折叠?



