I found a couple of Autohotkey scripts while reading stackoverflow and an ahk subreddit. They work on Win7x64, but might also work on newer versions of Windows. I can’t test though. Anybody want to?

This first one moves you back and forth between two windows, be they folders or programs or some document or other. I set it to use the Win key plus the letter O but of course that can be changed.


; SCRIPT FUNCTIONALITY Activates the last active windows

#SingleInstance Force
previous_ID := 0

; get the current window’s handle
WinGet, current_ID, ID, A

; wait until a new window is activated
WinWaitNotActive, ahk_id %current_ID%

; save the previous window’s handle for later
previous_ID := current_ID

; activate the previous window
WinActivate ahk_id %previous_ID%

; note that the earlier loop will take care of updating previous_ID.
; WinWaitNotActive doesn’t care if it was this script or the user that caused the active window to change...
; it is just looking at the handle of the current window.


This script is more for amusement than for practicality. It only works if you have your wallpaper set up to give you a slideshow. I set it to use the Shift key plus Win plus the letter N. When activated, it leaves the current window, goes to the next wallpaper in your collection, then takes you back to the window you were in.


+#n:: ; use the Shift+Windows+n hotkey
Send #m ; minimize all open windows
MouseGetPos, xpos, ypos ; get current mouse positionClick 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!


I also found a batch file earlier on, which (should) show you the exact path and name of the current pic being used as wallpaper.

@echo off


@echo The path to the current Desktop background image is:


REG QUERY “HKCU\Software\Microsoft\Internet Explorer\Desktop\General” /v WallpaperSource





Hope you like.