Friday, September 21, 2007

Solution of window resizing and moving for MS Windows with multiple monitors

I have tried several free tools on Windows system for window resizing and moving in and around multiple monitors. They were not that good, and even did not work when I have two monitors with different resolution and also layout (one portrait and one landscape). However, WindowPad surprised me by how easy this can be done using AutoHotKey. The original version of WindowPad is available at I made some small changes to

  1. Set the NumLock of keyboard to be always on when the script runs;

  2. Restore a maximized window before moving it to the next monitor, and then maximize it again.

The first change fixes the problem that the NumLock is set off when I remote connect to the box from the laptop at home. The second change makes the script work for moving a maximized window from a high resolution monitor to a low resolution one. The original script has been updated to fix the problem mentioned here and other bugs. Please check the latest version.