Disable “Taskbar Always On Top” in Windows 7

Just thought of sharing the worldwide protest of Windows 7’s stupid and intended omission of allowing other windows to go over the taskbar.

There have been numerous efforts to do this, but few of them I particular liked. So I decided to script my own AHK, and this method, so far, mimics Windows XP the closest.


~LButton::
WinGetActiveTitle, curWindow
WinSet, AlwaysOnTop, on ,%curWindow%
WinSet, bottom, , ahk_class Shell_TrayWnd
WinSet, AlwaysOnTop, off ,%curWindow%
return

 

EDIT: after working with it a bit more, I found that the script stole the focus from some menu items, causing the inability to select a menu item unless the mouse button was held down whilst choosing, and then releasing it to choose the entry. I modified the script — and glad it worked — so that instead of using the AlwaysOnTop parameter, Top replaces it, making the script less attention-getting.

 

~LButton::
WinGetActiveTitle, curWindow
WinSet, Top, ,%curWindow%
WinSet, bottom, , ahk_class Shell_TrayWnd
WinSet, Top, ,%curWindow%
return