我正在尝试在每秒钟之后在2张图像之间更改桌面墙纸,但是在执行几秒钟后它不再起作用了,有什么方法可以做到,但确实非常快,所以我可以在几秒钟内更改它到毫秒(以在通过其他程序更新的图像之间进行更新),但目前此简单脚本无法完成预期的任务:
@echo off
:Loop
reg add "HKCU\control panel\desktop" /v wallpaper /t REG_SZ /d "" /f
reg add "HKCU\control panel\desktop" /v wallpaper /t REG_SZ /d "C:\Users\Etudiant\Desktop\3.bmp" /f
reg delete "HKCU\Software\Microsoft\Internet Explorer\Desktop\General" /v WallpaperStyle /f
reg add "HKCU\control panel\desktop" /v WallpaperStyle /t REG_SZ /d 2 /f
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
TIMEOUT 1
reg add "HKCU\control panel\desktop" /v wallpaper /t REG_SZ /d "" /f
reg add "HKCU\control panel\desktop" /v wallpaper /t REG_SZ /d "C:\Users\Etudiant\Desktop\2.bmp" /f
reg delete "HKCU\Software\Microsoft\Internet Explorer\Desktop\General" /v WallpaperStyle /f
reg add "HKCU\control panel\desktop" /v WallpaperStyle /t REG_SZ /d 2 /f
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
TIMEOUT 1
GOTO Loop
exit