since I was annoyed I couldn't control windows nicely with the keyboard at work, I wrote this script. It allows you to align windows nicely by splitting the screen into halves, quarters and thirds.
Win+Arrow Keys does the same as in Windows 7 (I think) - Up maximizes, down restores/minimizes, left and right are the respective halves of the screen.
With Win+Numpad, 8/4/6/2 (Up/Left/Right/Down) are the respective halves of the screen, and 7/9/1/3 (diagonales) are quarters. 5 is maximize, 0 is minimize.
With Win+Ctrl+Numpad, the screen is split in 3x3 parts, every number (1-9) on the numpad is the respective part on the screen (basically like subtle, for the Linux-users... I think.)
Some ascii-arts from the source to make this more clear:
;; Windows + Arrow keys is mapped like this: ;; ;; +----+ ;; |####| Up: maximize ;; |####| ;; |####| ;; +----+----+----+ ;; Left: |## | | ##| ;; use left |## | | ##| right: use right half of the screen ;; half of |## | | ##| ;; the screen +----+----+----+ ;; Down: restore or minimize ;; ;; Windows + Numpad keys is mapped like this: ;; (screen divided in halfs/quarters) ;; +----+ +----+ +----+ ;; |77 | |8888| | 99| ;; |77 | |8888| | 99| ;; | | | | | | ;; | | | | | | ;; +----+ +----+ +----+ ;; |44 | |5555| | 66| ;; |44 | |5555| | 66| ;; |44 | |5555| | 66| ;; |44 | |5555| | 66| ;; +----+ +----+ +----+ ;; | | | | | | ;; | | | | | | ;; |11 | |2222| | 33| ;; |11 | |2222| | 33| ;; +----+ +----+ +----+ ;; 0: Restore/Minimize ;; ;; Windows + Ctrl + Numpad keys is mapped like this: ;; (screen divided in thirds) ;; +---+ +---+ +---+ ;; |7 | | 8 | | 9| ;; | | | | | | ;; | | | | | | ;; +---+ +---+ +---+ ;; | | | | | | ;; |4 | | 5 | | 6| ;; | | | | | | ;; +---+ +---+ +---+ ;; | | | | | | ;; | | | | | | ;; |1 | | 2 | | 3| ;; +---+ +---+ +---+ ;; 0: Restore/MinimizeYou can find the script and the exe at http://g.cmpl.cc/wingravity.
Feedback and suggestions are really appreciated, and if someone can test it in Windows 7 or with multimonitor-setups I'd be glad.
Florian




