Load next wallpaper vbs script: Difference between revisions

From roonics
Jump to navigation Jump to search
(Created page with "This script when run changes to the next desktop wallpaper. Tested on Windows 7 and Windows 10. Save the below as <filename>.vbs and when run if you have your pc set to cycl...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:


Save the below as <filename>.vbs and when run if you have your pc set to cycle through wallpapers in a folder it will move to the next one.
Save the below as <filename>.vbs and when run if you have your pc set to cycle through wallpapers in a folder it will move to the next one.
This can be scheduled as a task or an shortcut created so wallpaper changes once shortcut is clicked.


<pre>
<pre>
Line 11: Line 13:
WshShell.SendKeys("n")
WshShell.SendKeys("n")
</pre>
</pre>
[[Category:Windows]]
[[Category:scripts]]
[[Category:vbs]]
[[Category:wallpaper]]
‎<comments />

Latest revision as of 09:05, 20 March 2022

This script when run changes to the next desktop wallpaper.

Tested on Windows 7 and Windows 10.

Save the below as <filename>.vbs and when run if you have your pc set to cycle through wallpapers in a folder it will move to the next one.

This can be scheduled as a task or an shortcut created so wallpaper changes once shortcut is clicked.

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys("^ ")
WshShell.SendKeys("+{F10}")
WshShell.SendKeys("n")

‎<comments />