以编程方式定期更改桌面壁纸 [英] Programmatically change the desktop wallpaper periodically
问题描述
要创建一个可以定期更改桌面壁纸的程序,最好的办法是什么?我也想创建一个GUI周围的程序。我是计算机科学学生,因此我知道Java中的基本编程,以及C ++等。这将在Windows 7操作系统上完成。
What is the best way to go about creating a program that would change the desktop wallpaper periodically? I would also like to create a GUI around the program. I am a Computer Science student, and as such I know basic programming in Java, and C++ among others. This will be done on Windows 7 OS.
对于这样的项目,最好的语言是什么?
What would be the best language to use for a project like this?
理想情况下,我想使用系统时钟来触发更改。这是可能的吗?
Ideally I would like to use the system clock to trigger the change. Is this possible?
我在头上吗?
任何答案将非常感谢。谢谢。
Any answers will be very much appreciated. Thank you.
推荐答案
这是一个相当简单的项目,可以使用任何可以调用Win32 API函数的语言C ++,例如)。更改壁纸的非显而易见的功能是 SPI_SETDESKWALLPAPER 标志的$ no $> SystemParametersInfo
你给它一个新图像的文件名,壁纸变化。
This is a reasonably straightforward project, and can be done easily with any language that can call Win32 API functions (C++, for example). The non-obvious function to change the wallpaper is SystemParametersInfo
with the SPI_SETDESKWALLPAPER
flag. You give it a file name of a new image, and the wallpaper changes.
这篇关于以编程方式定期更改桌面壁纸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!