How to Switch Desktop Wallpapers in Windows 7 and 8 using a Hotkey

If you are using windows 7 or Windows 8, you must have observed that there are theme packs in both the operating systems. These theme packs consists of many different images. The other feature of these packs is that it automatically switches between the images of the pack after a particular time interval. Some (laptop) users might have observed this feature only when their machines are on charging mode (to keep the battery).

But as I said ‘after particular time interval’, it means you have to wait to get your favorite image as your desktop background. For example, if your favorite image is present at the fourth position of the pack and the time interval is set to 10 seconds, then you have to wait for 30 seconds to get your favorite image.

Suppose in other case similar to the above, you have large collection of images in your pack then what will you do? However you can click on ‘Switch To next Desktop Background’ option, but to use it again and again is really a lengthy process. Instead of that you can assign a hotkey with which you can change your desktop background, whenever you want.

To assigning a hotkey, follow these steps:

• Open notepad and paste the following code in it:

set WshShell = WScript.CreateObject(“WScript.Shell”)

WshShell.SendKeys(“^ “)



• Now save this file with .vbs extension. You will find a file similar to the screen shot below.

(I have named this file as techsalsa.vbs)

• This file will change your desktop background. Now right click on this file and choose create shortcut. This will place a duplicate file on your desktop. Now right click on this duplicate file and open properties. In front of Shortcut key, assign the hotkey that you want. I have assigned key ‘b’ for my file.

And click on apply.

Now whenever you will use this combination, you will see that your background will change automatically. You can use this combination to switch between the images faster.

Leave a Reply