8

Working on Windows XP, I'm looking for a software enabling at least the same window control present in Windows 7 and higher. By that, I mean:

  • when moving a window on an edge, this window is resize to take half the screen
  • Super + (or other directions) places the window on the desired edge

More ideally, I'd like a behaviour similar to Unity on Ubuntu, which gives more control (edges and corners via the num pad).

5

Even on Windows 7 and higher, this behavior is still limited to edges and not corners. I use AutoHotKey to achieve something similar to Ubuntu. Install it and run the following script:

#Persistent

SysGet, MonitorCount, MonitorCount
SysGet, Mon1, MonitorWorkArea
midH := (Mon1Right-Mon1Left)/2
midV := (Mon1Bottom-Mon1Top)/2

#NumPad1::
  WinRestore, A
  WinMove A, , 0, midV, midH, midV
  return
#NumPad2::
  WinRestore, A
  WinMove A, , 0, midV, Mon1Right, midV
  return
#NumPad3::
  WinRestore, A
  WinMove A, , midH, midV, midH, midV
  return
#NumPad4::
  WinRestore, A
  WinMove A, , 0, 0, midH, Mon1Bottom
  return
#NumPad5::
  WinGet, MinMax, MinMax, A
  if (MinMax = 0) {
    WinMaximize, A
  } else {
    WinRestore, A
  }
  return
  WinRestore, A
#NumPad6::
  WinRestore, A
  WinMove A, , midH, 0, midH, Mon1Bottom
  return
#NumPad7::
  WinRestore, A
  WinMove A, , 0, 0, midH, midV
  return
#NumPad8::
  WinRestore, A
  WinMove A, , 0, 0, Mon1Right, midV
  return
#NumPad9::
  WinRestore, A
  WinMove A, , midH, 0, midH, midV
  return

It allows you to use Win + any key on the numpad to move the active window to the corresponding edge/corner, with Win+Num5 for maximize/restore


Edit:

For a multi-monitor setup, here is the revised version of the script (Github link)

  • 3
    It works perfectly, thanks ! (for the script and for AH, looks like a useful tool) – fxm Oct 21 '14 at 12:13
  • works great for one monitor How to modify this script for multiple monitors so that it does not return to the main desktop? – dodohjk Jul 28 '15 at 15:40
  • @dodohjk I have updated the answer with the link to a multi-monitor version – Tymric Aug 19 '15 at 20:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.