With all of the new keyboard shortcuts added to Windows 7, I was wondering if a shortcut had been added to change the Desktop Background when the theme was setup to work as a slide show.
I want to execute the Next desktop background command which a user is prompted for when right clicking a desktop that has been setup for a slide show.
5 Answers
Not that I know, but it can be fixed with an AutoHotkey script. For instance, this will use Win+n to go to the next desktop background:
#n:: ; use the Windows+n hotkey
WinActivate, ahk_class Progman ; activate the Desktop
MouseGetPos, xpos, ypos ; get current mouse position
Click 0,0 ; click in the corner of the desktop, to unselect any selected icon
Send +{F10} ; send Shift+F10, the shortcut for right-click
Send n ; send "n", the key for "next desktop background"
Click %xpos%, %ypos%, 0 ; put the mouse back at its previous position
return ; done!The "n" in Send n is only valid for an English Windows 7 (Next desktop background). You'll have to change it if your Windows 7 is not in English to match the underlined key.
I found a much easier way to change your desktop background:
- Go to your desktop (Windows Key+D)
- Press "menu"key on keyboard (opening the same menu as mouse right button menu) + "n" key...
Result is the same - 2 buttons, desktop changed.
3WinActivate, ahk_class Progman
doesn't seem to work if Microsoft Visual Studio is running maximized, a real shame. Other than that it works fine.
Edit: the following works fine, but flashes the desktop. Pros and cons to all I guess.
#n:: ; Use the Windows+n hotkey
Send #d ; Switch to the Desktop
MouseGetPos, xpos, ypos ; Get current mouse position
Click 0,0 ; Click in the corner of the desktop, to unselect any selected icon
Send +{F10} ; Send Shift+F10, the shortcut for right-click
Send n ; Send "n", the key for "next desktop background"
Click %xpos%, %ypos%, 0 ; Put the mouse back at its previous position
Send #d ; Switch away from the Desktop again
return ; Done! I think this only works if you have your desktop icons showing. If you don't, Shift-F10 doesn't bring up the right click menu.
Edit: Well, I didn't install AutoHotKey, but someone at compiled it and it works with or without desktop icons showing. I just thought it wouldn't work as when I have my icons hid, the "Application" key and Shift-F10 both do not work. So, don't listen to me, it will probably work...
1I found the second version of the script ran best. Because the window key+d command toggles between the window and the desktop if you are already in the desktop it may switch away from the desktop first instead of switching to it. The following works better for this reason :-)
#n:: ; use the Windows+n hotkey
Send #m ; minimize all open windows
MouseGetPos, xpos, ypos ; get current mouse position
Click 0,0 ; click in the corner of the desktop, to unselect any selected icon
Send +{F10} ; send Shift+F10, the shortcut for right-click
Send n ; send "n", the key for "next desktop background"
Click %xpos%, %ypos%, 0 ; put the mouse back at its previous position
Send #+m ; undo minimize
return ; done!