Hey, so pretty much, it is as the title states. I have set up a VBS script and it does run but not always. I have to click on it multiple times for it to work. It a script to set up a wallpaper as a background and I have it set with a task scheduler so that it changes wallpapers in relation to the time of the day.
Here is one of the 9 scripts (one for each wallpaper):
dim shell
Set shell = WScript.CreateObject("WScript.Shell")
wallpaper = "C:\Users\Akersar\Pictures\asd\em.jpg"
shell.RegWrite "HKCU\Control Panel\Desktop\Wallpaper", wallpaper
shell.Run "%windir%\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters", 1, True
So yeah, it does run, but not every time I double-click on it. Any insights or solutions? I ask you friends!
Thank you in advance
Here is one of the 9 scripts (one for each wallpaper):
dim shell
Set shell = WScript.CreateObject("WScript.Shell")
wallpaper = "C:\Users\Akersar\Pictures\asd\em.jpg"
shell.RegWrite "HKCU\Control Panel\Desktop\Wallpaper", wallpaper
shell.Run "%windir%\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters", 1, True
So yeah, it does run, but not every time I double-click on it. Any insights or solutions? I ask you friends!
Thank you in advance