KDE Mover-Sizer New Logo, in large 256 pixel size. KDE Mover-Sizer

Move and resize Windows windows just like Linux Windows!

An essential add-on for Windows XP, 2K, Windows Server, Windows 7 and Windows 8/8.1.
Yeah, okay, and Vista!

Here is a page about my KDE Mover-Sizer. Okay, it's not entirely mine, not even mostly, but I've added enough code to call it mine, and it's too damn essential to not have a page of its own somewhere, so here it is..

What does it do?

KDE Mover-Sizer is a background application that emulates the behaviour of KDE, which is a rather good Linux desktop environment. Actually, Gnome and other Linux window managers also do it these days, but that wouldn't make for such a funky name. Essentially, you hold down the Alt key, and Left-click to move a window, Right-click to resize it; and from anywhere inside the window. That's it. And once you use it for a few minutes, you'll wonder how you ever lived without it.

The utility itself is coded with AutoHotKey, originally a fork of AutoIt, and highly useful in its own right. The original script (which I snaffled from the AutoHotKey forum, the best of many similar scripts) did all the above, but was missing something essential, that is; window snapping. So I added that, and gave them it back.

The window snapping is important for at least two reasons; 1) it enables you to place a window, as if by magic, exactly at the edge of your desktop. If, like me, you like to keep your main document windows in the centre of your screen, and leave lots of folder windows open up and down the sides of your desktop (I have a widescreen monitor now, which makes this even more effective) then you will find it invaluable. And 2) it enables you to resize the window from the edge of your screen. This is easier to do than to explain, though I'm going to attempt that anyway, with a couple of how-to style tips..

Cool Tricks..

I've gotten into a couple of habits thanks to the KDE Mover-Sizer. The first is a quick one-two action where I first Alt-Left-click a window and throw it roughly into place (off the edge of the screen), and then do a single Alt-Right-click to snap it back into perfect view. I've already had a week-off with all the time this good habit has saved me.

The new version can also snap directly to the edge during regular Alt-Left-Click moving - so long as you are within the snap distance, it will lock against the edge of your desktop. You can also constrain movement along the X or Y plane by holding down the<SHIFT> key, very nice!

The second habit of one of resizing windows from the edge. First, I get them there, as in tip 1, then I grab a corner (anywhere in the quadrant is fine) with an Alt-Right-click, and drag-resize them while the two opposite edges (one of which is bang up against the edge of the desktop) stay put. This isn't so much a time saver, as a sanity saver. I'm very particular about the amount of white space that shows in folder windows, and it they don't look right, I couldn't leave them open. Leaving them open is what saves time.

Another thing I've started doing, is sliding windows up and down the edge of my desktop by Alt-Left-click+drag (at the very edge of the desktop). The snap keeps them from moving left and right - it's like they are on rails! Very handy. And remember, it works on windows behind windows, too, and without bringing them to the front.

Try it!

You need to play with it to fully appreciate the beauty of KDE Mover-Sizer. Fortunately, I have a precompiled Windows executable which you can simply download and run. There's no installer, and it doesn't use the registry. The only settings are in a regular plain text ini file, which lives right next to KDE Mover-Sizer.exe, so it's completely portable. When running, a cute tray icon enables you to exit, if required (unlikely!), as well as a few other options. Drop a shortcut into your startup folder, and then you're cooking with KDE!

Then forget about it..

KDE Mover-Sizer uses very little resources to work its magic, and works on all desktop windows, even windows that aren't at the front, even those daft fullscreen installer windows. It will even sneak inside a Sandboxie and work there. It also enables you to resize windows that don't normally allow resizing, which can be a real bonus with certain dumb dialogs (cough *FirefoxSearchPlugin* cough). In no time, it feels perfectly natural, and you're throwing windows around with a whole new level of precision and abandon!

Like I say, I "couldn't live without it", and I'm fairly certain that if you use it for a wee while, you will feel the same way. At any rate, it's free; so why not try it and see..

KDE Mover-Sizer Download

download

KDE Mover Sizer for Windows

click to see zip archive contents

LIVE MD5+SHA1 Multi-Hashes..
# made with checksum.. point-and-click hashing for windows (64-bit edition). # from corz.org.. http://corz.org/windows/software/checksum/ # #md5#KDE Mover-Sizer for Windows.zip#2014.09.10@11.15:30 b14b27a7556b2c2e7dd8a1fff9b2a107 *KDE Mover-Sizer for Windows.zip
download

KDE Mover Sizer for Windows x64

click to see zip archive contents

LIVE MD5+SHA1 Multi-Hashes..
# made with checksum.. point-and-click hashing for windows (64-bit edition). # from corz.org.. http://corz.org/windows/software/checksum/ # #md5#KDE Mover-Sizer for Windows x64.zip#2014.09.10@11.15:34 34d40215c5023ebeb8dfdc86b4bdd82f *KDE Mover-Sizer for Windows x64.zip
NOTE: Multiple monitors are now supported! Thanks to some sterling work by Matthias Ihmig.

While I'm about it, the next time KDE Mover-Sizer saves you time and sanity navigatin' your mouse to a 1 pixel wide border or incy title bar or corner handle, feel free to whisper "Thanks Bud!" under your breath to the following good people who all had their grubby mits on KDE Mover-Sizer at some point..



If you want to check out the source (with fuller credits), perhaps customize it to your own requirements, even add some new feature and your name to the above list, or whatever, the code is freely available, here..

Another of AutoHotKey's tragically poor icons
View the Source Code


Have fun!

;o) Cor

p.s. KDE Mover-Sizer works inside a Sandboxie sand box, without having to load a separate instance. KDE Mover-Sizer also works inside CoLinux, e.g. Portable Ubuntu. In fact, it would be quicker to list the places it doesn't work, if I knew of any.

Welcome to the comments facility!


previous comments (thirteen pages)   show all comments

Matthias - 04.09.19 7:22 am

@trace:
With "full-screened window", do you mean
a) the fullscreen you get when you press Alt+Middle click or double click the title bar
or
b) the fullscreen you get without title bar by pressing F11 ?

a) works for me, also in the newest Firefox 69.0

For b), you can extend the script to automatically "press" F11 before moving/resizing.

Try to add the following snippet after DoMovingWindowMinimize: and after DoResizingWindowMaximize:

Note that this is a quick hack. Detection of case b) will probably only work on the main screen. For other screens, you need to extend it or find a better way to detect if Firefox is in b)-mode.

    MouseGetPos,mx_scr,my_scr,curwin_id
    WinGet currentwinname, ProcessName, ahk_id %curwin_id%
    If (InStr( "firefox.exe", currentwinname, CaseSensitive = false ) != 0)
    {
        CoordMode,Mouse,Window
        MouseGetPos,mx_win,my_win,curwin_id
        CoordMode,Mouse,Screen

        If (mx_win = mx_scr AND my_win = my_scr)
        {
            Send {F11}
            ;uncomment if size is wrong, to give window more time to resize "back"
            ;Sleep 100
        }
    }

Hope that helps,

Matthias


trace - 24.10.19 12:53 pm

Hey again Matthias,

b) is the case relevant to me. Adding that snippet does accomplish being able to resize an F11-fullscreen Firefox window, but it also causes it to snap back into normal window mode. The neat thing about using Mover-Sizer with F11'd windows is that it maintains the borderless layout where every pixel is page content, as well as the fading in and out of bars. This works flawlessly with old Firefox versions.


Matthias - 06.01.20 8:30 pm

@trace:
It looks like Firefox at some point has changed on how the fullscreen window is implemented. If there is no API- or Plugin-way that the Firefox Window during F11 can be controlled through KDE Mover-Sizer, you can't use the F11-Window mode any more.

Here's an idea for a workaround though, that might get you closer to what you want:
Instead of F11, you - like in my previous post - define special handling of "Make Fullscreen" in KDE Mover-sizer.AHK.

This then does the following:
- NOT send "Maximize"
- Put Firefox Window to "Always Foreground"
- Send keys to hide Menu Bar and Bookmark bar (unfortunately, to hide the URL and Tab bar, it seems like this cannot be done dynamically - you would have to start with with a modified user-Preferences css
- Set the Firefox Window size to the full screen coordinates, including putting it over the Windows Start bar.

Maybe that helps you a little on the way. But not as convenient as before though.

Matthias


trace - 12.01.20 9:46 am

Thank you for your continued assistance, Matthias.

I have pretty much resorted to using the Window Resizer extension to apply an initial resize, then Mover-Sizer to get the window how I actually want it, and then F6 to focus the URL bar whenever I need to. Rather inconvenient (and still not quite perfect, as there appears a thin border at the top of the window), but I just don't want to browse the web with bars and borders anymore. I really am surprised it is still such an awfully obscure thing, given that it's just an optimal way to display web content of any kind.

It's odd that the Window Resizer extension somehow is able to force its will upon Firefox's F11-fullscreen mode, yet Mover-Sizer cannot anymore. I almost even went and started using Edge, where Mover-Sizer still does the trick, but that has its own share of issues (and as does using old Firefox builds, for that matter - the last version I know still responds to Mover-Sizer in fullscreen mode was around 55, and once you go back that far there are some compatibility and security issues).


still works win 10 - 17.06.20 7:29 pm

this still works in windows 10, however snap to grid doesn't seem to work, or I don't know how it works


triggylol - 19.11.20 2:49 am

At the moment it works again in Firefox (83.0b3 (64-Bit)) if you set the entry "full-screen-api.ignore-widgets" in "about:config" to tru.


Aadi Sahni - 11.12.20 4:12 pm

H, I was wondering how to use the double alt with the windows key set as my window resize, moving and maximize shortcuts. I've never been able to get it working.


Matthias - 26.03.21 5:45 pm

Follow this sequence

Snap-to-grid:

1) Push&Hold Alt
2) Push&Hold Left or Right Mousebutton
3) Release Alt (keeping Mousebutton pressed)
4) Push&Hold Alt again
5) Move Mouse (while still keeping Mousebutton pressed)
-> Window will moved and resize, snapping to grid


Double-Alt - Actions are current only implemented as "quick-event"-actions. This means, they can trigger actions like "Maximize/Restore", "Close", "Minimize", but not used for "longer" actions like resizing and moving.

For example, to maximize/restore a window:

Do steps 1-3 quickly (by default within 400ms). Otherwise, the "Double"-Action is not recognized.

1) Push Alt
2) Release Alt
3) Push(&Hold Alt)
4) Press&Release Right mousebutton

Have fun,
Matthias


Aadi Sahni - 15.04.21 11:21 am

Hi, I'm Wondering how could I remap the hotkey to CapsLock


Saverio - 02.07.21 4:21 pm

Hi, is there any possibility to use a key combination to put in background (not minimize but in background) a window that currently is on foreground?

For example f you click on Alt (hotkey) + LMB on titlebar of the window: it goes in background.

Thanks in advance


Matthias - 13.07.21 10:53 pm

@Aadi Sahni: didn't try it, but have a look here:
https://www.autohotkey.com/boards/viewtopic.php?t=63496
https://www.autohotkey.com/docs/KeyList.htm#IME

@Saverio: Putting in background, you mean like Alt+Esc ?



First, confirm that you are human by entering the code you see..

(if you find the code difficult to decipher, click it for a new one!)


Enter the 5-digit code this text sounds like :

lower-case zed, Upper-Case Vee, fore, lower-case bee, Upper-Case Ess


 

Welcome to corz.org!

I'm always messing around with the back-end.. See a bug? Wait a minute and try again. Still see a bug? Mail Me!