How to snap windows horizontally in Windows 7


You may know the convenient feature in Windows 7 to snap windows to the right and left: drag a window all the way to one side of your screen and it will snap to the side of your screen, taking up exactly one half of it. The keyboard shortcut Win+Left (right) arrow does this as well. But how do you snap windows to the top and bottom of your screen? It's easy!

I created the attached utility to do this. I use it frequently myself. Unzip the attached file and run the EXE (I suggest that you add it to your Start up folder on the Start menu). Then use this keyboard shortcut to snap windows: Win+Shift+Up (down) arrow. It's as easy as that!

If you find this utility useful, let me know in the comments below!


Hi Ben, can you share the script for this app? I want to add the code to my master .ahk file (which I have always running) rather than running another instance of AutoHotkey.


Leo, I uploaded the the script. Please share if you have any improvements!

Thanks for the source code, Ben. It's working perfectly. :)