解决win11桌面壁纸一直自动换成纯色的正确解决方法

先把wallpaper的覆盖桌面壁纸关了

然后沿这个路径C:Users\你的用户名
AppData/ Roaming MicrosoftWindows\Th
emes把wallpaper的图片删了就好了

之后换成继续使用wallpaper就不会出现切换成纯色的问题了

ps:如果找不到AppData就打开隐藏项目,抖音上有教程一搜就知道咋弄了

### Win11 自动更换桌面壁纸设置方法 #### 使用 Windows 11 内置功能 为了使桌面更加个性化并带来全新的视觉体验,在 Windows 11 中可以通过内置功能来实现自动更换壁纸。具体操作如下: 进入系统的“设置”菜单,选择“个性化”,再点击左侧栏中的“背景”。在这里可以选择不同类型的背景图片,如纯色、幻灯片或视频等[^3]。 当选择了“幻灯片放映”的方式之后,则可以在右侧看到更多关于此模式下的配置项。用户可以从本地文件夹中选取多张图像加入到轮播列表里;还可以调整切换时间间隔以及指定特定时间段内显示哪些照片集等内容。 另外值得注意的是,虽然上述步骤主要针对静态图片之间的转换进行了说明,但对于支持动态效果的新版操作系统而言,同样适用这些基本原理——即通过定义一系列资源(无论是静止画面还是动画序列),配合定时机制完成周期性的展示更替过程[^2]。 ```python import os from pathlib import Path def set_wallpaper_folder(folder_path, change_interval=60): """ Set a folder of images as wallpaper slideshow on Windows 11. :param folder_path: The path to the directory containing image files for the slideshow. :type folder_path: str or Path-like object :param change_interval: Time interval between each wallpaper change (in seconds). :type change_interval: int """ # Ensure that the provided path is valid and contains at least one file with an image extension if not isinstance(folder_path, (str, Path)): raise ValueError("Invalid input type for 'folder_path'. Expected string or Path.") folder = Path(folder_path).resolve() if not folder.is_dir(): raise NotADirectoryError(f"The specified location '{folder}' does not exist or isn't a directory.") img_extensions = ['.jpg', '.jpeg', '.png', '.bmp'] imgs = [f.name for f in folder.iterdir() if any(ext in f.suffix.lower() for ext in img_extensions)] if len(imgs) == 0: raise FileNotFoundError("No suitable image files found within the given folder.") # Configure system settings using command line interface here... print(f"Setting up {len(imgs)} wallpapers from '{folder}' to rotate every {change_interval} second(s).") set_wallpaper_folder(r"C:\Users\YourUsername\Pictures", 300) ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值