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.

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


KDE Mover Sizer for Windows
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#2013.08.13@03.48:04 d7bb292d6f54e5ea49705ac0f2abd779 *KDE Mover-Sizer for Windows.zip #sha1#KDE Mover-Sizer for Windows.zip#2013.08.13@03.48:04 bfaff36e78d306f19df127b268f118b03f62f99e *KDE Mover-Sizer for Windows.zip

KDE Mover Sizer for Windows x64
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#2013.08.13@20.47:22 fb009090092002b7ab7c0e614b63a4fd *KDE Mover-Sizer for Windows x64.zip #sha1#KDE Mover-Sizer for Windows x64.zip#2013.08.13@20.47:22 44cb9a22eaea41c18553d302f96ee993c325d91a *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!


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!

return to paged comments
cor - 12.10.09 7:14 pm

Okay, I finally got around to putting comments on this page. Hopefully this should cut down on mail!  smiley for :ken:

Great new update today, tell all your friends!

for now..

;o) Cor

me - 12.10.09 9:02 pm

cool icon! Thanks for the new release!

Ripper - 12.10.09 9:30 pm

Agreed about the icon! I won't complain! smiley for :D

I wanted to comment to say thanks for multi-monitor support! I'm about to play with the new version. Thanks again!

cor - 12.10.09 9:55 pm

Thanks guys! Yeah, that's the final icon now, I swear! smiley for :ken:

Hopefully it should be close enough to the original KDE icon to be recognizably "KDE", but different enough not to clash with other apps that use it - being the standard KDE Krystal icon - who would be lazy enough to just use that, eh! smiley for :lol:

By the way, if anyone reading this is a member of one of the (many) forums where there's a link to here, they would thank you for letting them know about the update, I'm sure!

;o) Cor

Sol - 13.10.09 10:40 am

MultiMonitor support at last! Very nice new version all-in! Good Work!

jK - 14.10.09 1:24 pm

Luvvin the new version! I like how it snaps when it moves now. Suggestion: it would be nice to see something written up about the new "special" features. Thanks for a job well done!

Matthias - 14.10.09 11:43 pm

Thanks! Glad you like it.
Here's some more information on the "special" features:

* The "magnetic resizing" is actually the original snap-on-resize algorithm from cor. It allows to resize while keeping the window snapped (drag slowly to see the difference).
The new "normal" snap-on-resize is much less spectacular and handles similar to snap-on-move, still I find it useful on multi-monitor setups.

* The "Resize restores maximized window" is not related to snapping.
When enabled, a maximized window is restored to its original size, before resizing. When disabled, a maximized window starts resizing from the maximized width&height. You'll only notice the difference when you resize a maximized window.

~ Matthias

Janice - 16.10.09 1:43 pm

WOW! Software CAN change your life! HUGE thanks!!!

cor - 19.10.09 5:25 pm

I know just what you mean, Janice! smiley for :ken:

Thanks for that, Matthias. I'll likely drop that text, or something very like it, into the page proper, hopefully before these comments slip away.

I came across another site last week (foreign) with a cute video of KDE Mover-Sizer in action. However, no one, yet, has a video of the new version working, especially working across multiple monitors (is desktop recording across multiple monitors even possible? Why not!).

If this happens, I hope I find out about it. I might even add it to the page! smiley for ;)

l8r folks!

;o) Cor

KC - 23.10.09 7:30 am

Excellent work!

puffycloud - 27.10.09 3:24 pm

Coming over from linux this was an absolute lifesaver!!! Thanks to all involved! I don't know what I would have done.

Darbin - 31.10.09 3:10 am


michael - 03.11.09 8:26 am

Wonderful program this. I've been using it for awhile and after the latest update... even better.
Kudos gentlemen.

DZ3 - 08.11.09 1:44 pm


Cleggart - 14.11.09 9:24 am

This is very neat! I think you will like the page I found this at --


Thanks for a fine app.

Rafi B. - 18.11.09 11:09 pm

Great great great script. excellent from quickly controlling windows without having to go to click some damn little icon buttons. Why isn't this integrated in Windows ?! smiley for :blank:

Olegario Olengolev Olenson - 29.11.09 4:23 pm

Finally I am free from hunting borders and icons...Thanks so much!

Nukem\' - 14.12.09 5:25 pm

Thanks for this script ... if you owed windows 7 to me like microsoft says, then we wouldn't need this script. But, since microsoft should do more thinking (and listen to me...), I'm glad you've update it for win 7.


Kjartan - 16.12.09 2:01 pm

Hi, I love this little program.

However, I'm having a problem in Windows 7. The Hotkeys stop working after a few minutes. They start working again if I right the program icon in the taskbar and disable and the enable hotkeys.

Do you have any idea about what is causing this?

As I said, I'm using Windows 7 and usually have dual monitors, but I've also tried it with a single monitor and the same bug happens.

Is there a workaround or a way I could at least restart the program or hotkeys from the command line?

Matthias - 18.12.09 10:19 am

I don't have Windows 7, but you could try the following:

- google autohotkey instead of KDE mover-sizer with your problem. Maybe you find a hint, as this seems to be Autohotkey related. If you find a solution, feel free to edit the source code and test it.

- as workaround, you could use pskill.exe to kill the task and start it again from commandline

- you could try to run kdemoversizer as administrator (right-click runas) and see if the problem persists.

ycchen.de - 18.12.09 3:24 pm

mighty nice app, I've looked long for this behavior for all windows (like Skype on Windows)

Unfortunately, it interferes with any application that uses Alt as a modifier, for instance Photoshop, 3ds max (just happen to be running while I'm trying your KDE mover-resizer).

So, is it possible to limit the snapping functionality so it doesn't work anywhere (I know it's supposed to be a feature), but only when dragging the windows' borders and title bar?

Best regards and thanks for making this app.

Matthias - 19.12.09 9:51 am

For Photoshop (or any application that wants the Alt key for hotkey modifiers,
try Alt+Win+Key for that.

If it still doesn't work, you would need to download the source file and change to Alt modifier to Win for example.

Hope this helps...

ycchen.de - 21.12.09 11:15 am

Hi, thanks for the response.

Meanwhile I'm doing exactly that. Alt-Win-Click works out well but I'm having a hard time grasping the behavior of Resize: If I drag RButton downwards, the upper border of the window can eventually go beyond the screen - am I using it wrong?

Back to my original question, wouldn't it be a nice alternative mode ("stealth extension" so to speak) if the snappy movement and resize is simply the default for dragging windows 'regularly'? We would be improving the default behavior for essentially zero learning curve (which even simple hotkeys have).

Sorry for the wishful 'requests', I'm just not yet fit enough in AutoHotKey to code it myself, or even to know whether that's possible (manipulating mouse actions without modifier keys, that is).

Best regards,

Matthias - 21.12.09 3:02 pm

@ycchen: not sure I know what you mean exactly, but try switching off "Special > Magnetic resizing" and see if this answers your question..
Not sure if "stealth extension" can be done with Autohotkey. If you only need snapping, have a look at "allsnap" (just googled; didn't try it)

Dave - 20.01.10 6:28 pm

You're amazing!
I'd often wished for this, I don't know why I didn't Google it earlier; will be letting everyone I know who also suffers that it's a solved problem.

My only complaint: Where is the donate button? smiley for :)

Matthias - 26.01.10 9:08 am

Glad you like it. If you want to donate, please donate some of your time and spread the word smiley for :)

Sakaa - 14.02.10 4:01 pm

Hey man !

I love this thing. However, I've been trying for like 4 days now, to get it to minimize on alt + double right click and restore/maximize on double left click. Can somebody please help me ?

Matthias - 16.02.10 11:23 am

For minimize/restore/maximize, try Double-Alt + Single-Click instead of Single-Alt + Double-Click ;-)

Serguei - 12.03.10 10:18 am

It's Incredible!!! Many problems solved with this little program. Microsoft must to have shame!!!

Tom - 30.03.10 7:56 am

Wow, I often thought about how to get this KDE behaviour work in Windows.
This is a very great script. I like it.
Unfortunately resizing doesn't work on putty windows.

Jussi - 10.04.10 12:44 pm

This is a great little app! Any chance of making modifier configurable so that left-handed mouse users could use right Alt instead of the left one? I did tried editing the source but couldn't figure out what to change in order to change the modifier.

no name user - 10.04.10 10:51 pm

A wonderful program especially for netbooks with low resolution - thanks for giving it to everyone!

Wow! - 16.04.10 9:39 pm

Love this script, thanks!

Boza - 21.04.10 5:29 pm

A wonderful programsmiley for :D, but press "Alt+mouse button" is same to ProE to rotating, zooming, panning the viewport, so anyone knows how to change the "Alt" to "Ctrl+Alt" in "AHK" file?


Matthias - 21.04.10 6:37 pm

@Boza: Try Alt+Win-key instead and see if this solves your problem. Otherwise, add "^" in front of the "!:" in the AHK file. Not sure if this enough - didn't try it.

For more details on changing the modifier keys, please have a look at http://www.autohotkey.com/docs/Hotkeys.htm

Alex - 21.04.10 6:42 pm

Add "^" in front of !LButton:: at Moving window,
then use Ahk2exe.exe to compile it.

Milky - 23.04.10 2:43 am

You have saved my netbook! My screen is less than 600 pixels tall and a ton of windows are way bigger than that making my life hell. Thanks to this I don't have to guess where OK buttons are anymore!

dwilson - 19.05.10 3:38 pm

Just started a new job where I must work on Windows, after years of 99.9% Linux. This small piece of software make Windows almost useable, and therefore helps me stay sane. Er, less insane.

Daru - 22.07.10 5:42 am

Very nice. smiley for :)
This makes life much easier for me, as I'm constantly grappling with Windows to recognize my cursor as in the exact pixel that makes the window resize arrow show up.

My only issue with this is that I use an alt-click keystroke in Photoshop a lot, so I constantly find myself moving the Photoshop window instead of sampling the color (which is what the action does in Ps - I can't find a way to change it on Photoshop's side).

My request is for a toggle or user-defined keystrokes to move or resize the windows, or a way for keystrokes to be disabled while certain programs are in focus.

Unfortunately, I'm absolutely hopeless with coding, and kudos to you (and everyone who contributed code) for making such a useful program in pretty much every other respect. smiley for :D

tokitokitoki - 06.12.10 8:00 pm

I have add to your code ability to define hotheys for moving\resizing\maximizing and minimizing window in ini, because I think it will be usefull.
You can see it on forum.script-coding.info/viewtopic.php?pid=42628#p42628

moovida - 22.03.11 4:16 pm

This is the best thing I saw in days. You are my heros!!! Windows windows are less annoing now. Thanks!

Brenco - 21.05.11 6:06 pm

Does KDE Mover Sizer work with a track ball mouse?

Brenco - 22.05.11 9:14 pm

Excuse me for asking such an ignorant question in the previous comment. I'm actually having issues with re-sizing various windows and boxes using your app. One application in particular refuses to respond to you app in any manner. That pragram is TUT - The Ultimate Troubleshooter ver. 4.92. I have re-loaded your app several times in hopes that would solve the issue but it doesn't. There are other dialog boxes and or Windows information "boxes" that also don't respond.

I am operating three brand new computers, each running Windows 7. One computer is a Mainegear unit, the second one is a HP notebook, and the third is an HP desktop. All three show the same response to your app.

Any ideas - please. Your app is ABSOLUTELY required!

ianus - 27.05.11 9:02 am




waid - 08.06.11 9:32 pm


Matthias - 28.06.11 10:54 am

@Brenco: If an application does not respond at all (neither move nor resize), it can be that it was started with a different user.

For example, if you start KDE-Mover-Sizer as standard user, you cannot move/resize any application started with administrator priviledges. If you want to do this, you have to also start KDE-Mover-Sizer as administrator.

You can automate this, if you create an entry in "Startup" with:

C:\Windows\System32\runas.exe /savecred /user:administrator "C:\Program Files\Utilities\KDE Mover-Sizer for Windows\KDE Mover-Sizer.exe"

(or whereever your KDEMoverSizer.exe is located)

Let me know if this helps.

What other programs / dialog boxes do not respond?


Giannetto - 28.06.11 4:01 pm


Very nice work, indeed!! I found a lot of forums on the Internet where they say that there's no solution for this problem (that is, moving upward a dialog box enough to be able to click on a previously unavailable button, even if the title bar is no longer visible). Your smart tool shows the opposite!

Many thanks!


Matthias - 01.07.11 10:14 am

Glad you like it. If you want, post a hint on these forums ;-)

wibble - 03.07.11 9:45 pm

This is brilliant -- it makes using Windows bearable!

It would be nice if there was an option to disable the double-alt stuff. I found it constantly minimizing windows I wanted to move. Since you provide source code I was able to stop it doing that myself, but now I don't have the nice icon any more :)

eddie - 26.07.11 3:04 pm

Wonderful app smiley for :) However, I am having problems making it play nicely with Synergy. I have the Windows computer as a client to an Ubuntu host computer, and when trying to do e.g. the Alt+Left click move, nothing happens.

Matthias - 11.09.11 8:18 am

@eddie: If you're using Gnome or KDE, they grab the Alt+Click commands for moving&resizing their own windows. You have to either disable this in KDE/Gnome or change the trigger keys used for this (either in Ubuntu or in the KDEMover-Sizer sourcecode.

Ramona - 23.09.11 8:05 pm

THANK YOU very much for the tool, it makes my life much more easier!
Until today, I used Windows's "display rotating" to program my DVB-T recordings because the window was too large. It was really circuitous.
I'm very relieved!

SwigriD - 12.10.11 9:34 am

Hi There,

I like the program, however when I m moving window which is in background it stays in background (at least in Windows 7). Is there any option in ini file to set this up? When start moving or resizing place the window on top?


Matthias - 14.10.11 2:41 pm

Actually, this is a feature, not a bug ;-)
If I need it, I usually use a "click+alt+click" to bring it to foreground.

But take the source and add a WinSet command at your convenience
to bring the clicked window to front at the "moving" hotkey:

Have fun,

Salazar - 07.11.11 8:32 am

I use the KDE Mover-Sizer since two or three years or so. And I can't live without it anymore ;-)

And I use it on my home-PC without any problems, but I have an issue with your app on my work-PC, that is running with Win 7 (64 bit) for the first time. Interestingly enough this is the same OS that I use on my home-PC since about one year.

On my work-PC I have to push down the Alt-key for about one second, before I can push the mouse-button to drag or resize the window. If I push the mouse button to early, windows behaves as there isn't the KDE Mover-Sizer installed. This is really annoying, especially if you're used to this tool so much as me smiley for ;)

Maybe you have an idea how to resolve this problem.

But anyway, KDE Mover-Sizer is a really great tool.
Keep up the great work!!


PS: You should add a Flattr-Button on your donation-page

Dariush - 10.11.11 2:37 am

I'm using KDE Mover-Size for a long time now, about 3 years, and decided to donate for it.
I love this little peace of software, it's fantastic.

Matthias - 22.11.11 9:06 am

@Salazar: I haven't experienced a delay like that on a number of machines. Looks like it is some special software that slows down Autohotkey.

You could try to google your problem description with the keyword autohotkey instead of kde-mover-sizer, because your problem may affect other Autohotkey programs as well.

Let us know if you found a workaround!

Mo - 24.11.11 8:59 am

Snapping to the desktop boarders is fine but could you also add snapping to other window borders? I liked to use "All snap" but this doesn't work when resizing with KDE-Mover-Sizer.
Thanks for that software, it helps me in cases I cannot use KDE itself smiley for :)

Matthias - 15.12.11 12:34 pm

Implement Snapping to other Windows borders is a lot more work, so unless you implement it yourself, it will most probably not be done :-)

cor - 16.12.11 3:56 am

Thanks for holding the fort, Matthias! I forget about this page sometimes, though I do still use KDE-Mover-Sizer thousands of times every day.

;o) Cor

hiall - 06.02.12 9:23 pm

very very nice, just any options to hide the tray icon ?, many thanks for this really useful util

Y - 13.02.12 1:47 am

How about add original autohotkey 'reload ini' for tray icon since we may load some other scripts and sometimes need to edit it.

Patrick - 20.02.12 6:03 pm

Great tool if only it would work with PuTTY :(

Andreas - 24.02.12 9:37 am

Really great tool (for me an essential tool which is usually one of the first to install on a fresh windows installation smiley for ;)

Please note: this tool only works on windows running in the same user context as itself. If you e.g. start putty with administrative rights (for what reason ever...) it cannot not be "catched" by the KDE Mover Sizer (when started without administrative privileges).

The KDE Mover Sizer works fine with putty for me smiley for ;)

Matthias - 26.04.12 3:48 pm

> The KDE Mover Sizer works fine with putty for me

Moving does work, but resizing doesn't work for me as well.
I guess it's because Putty uses a special routine to always fit a multiple of whole characters.

What version of Putty are you using? And does resizing also work for you?

PsiX - 31.05.12 12:13 pm

For all those lefties who use their left hand for mousing, it would be nice to be able to switch to a hot key on the right side of the keyboard, preferably AltGr.

It's easy to create your own custom version of KDE-Mover-Sizer..

  • Load the source code in a decent text editor
  • Replace !LButton::, !RButton:: and !MButton:: with <^>!LButton::, <^>!RButton:: and <^>!MButton::, respectively (for further information, see the AutoHotkey Hotkeys documentation).
  • compile the result with AutoHotkey. TADA!

In case that sounds like too much of a challenge, or simply too much bother, I went ahead and made one myself, it took under a minute, including upload! You can get it here. I note they seem happy enough to run at the same time.

Have fun!

;o) Cor

johannes - 16.07.12 6:18 pm

This makes Windows so much better! Unfortunately, it doesn't seem to work on Windows 8. I might try to fix that myself, but it'll be some time into the future. If anyone else would like to hit that, I would be happy as a pie.

Kyle - 17.07.12 6:47 pm


I've noticed the same thing on my new Win7 machine at work, did you ever find a fix? If not, this is just a "me too" and I'll try some things next time I get admin on my box. My Win7 at home doesn't have the same behavior, FWIW.

Matthias - 20.07.12 3:53 pm

For all PuTTY users:

The new PuTTY version (0.62) can now be resized by KDE Mover-Sizer.

So if you miss hotkey resizing, upgrade your PuTTY to the latest version.

satirik - 30.08.12 8:06 pm

replace the "!" by "XButton1 & " or "XButton2 & " to make it work with the mouse button 4 or 5 (no need to use your keyboard to move resize everything easily)

before :

; *********** MOVING WINDOW ***********

after :

; *********** MOVING WINDOW ***********
XButton2 & LButton::

Joe User - 18.11.12 10:38 pm

Hey @eddie, you are right. Synergy (latest) seems to break KDE Mover Sizer when it is running (at least when it is running as a service). I tried going into Synergy options and found that by changing the mode to 'desktop' (legacy) and not 'service' seemed to resolve this. woot! right? after setting to legacy, exit all synergy progrmas, and restart the Synergy service in windows 8 and it -should- be all set.. I've got a bunch up and cant reboot at the momement to test if this is a solution.. you try, and let us all know , cheers.

chromax - 06.12.12 9:10 am

Very useful.

Is there any possibility to resize a window without showing its content?

I mean in windows theres an option "show window content while dragging" and when disabled you only see a border if you resize a window and after you released it, the window content is drawn.

I need this because in Applications with massive UI or slow CPU (netbook) it can get really jerky because of permanent redrawn of UI and this simple method would solve it.

Why not simply disable "Show Windows Content While Dragging"? ;o) Cor

Markos F - 09.12.12 11:42 am

I added these lines because I wanted the scroll wheel to activate the window I am trying to scroll. (I check if the RButton is pressed because I use VistaSwitcher and it uses RButton and scroll wheel to alt+tab through tasks) You might want to include them in your release. Thanks for your time:


; *********** Wheel activate ***********
GetKeyState, state, RButton ,P
if state = U
MouseGetPos,,,win ; Get the window below the mouse
WinActivate, ahk_id %win%

GetKeyState, state, RButton ,P
if state = U
MouseGetPos,,,win ; Get the window below the mouse
WinActivate, ahk_id %win%

; *********** MOVING WINDOW ***********

Paulo - 12.12.12 3:21 am

Is it possible to make the <Ctrl+Shift> the modifier key, or have the modifier key to be configurable? This program is great, but it's just that the <Alt> key "colides" with my KDE linux desktop that I am running in Windows...

Paulo - 12.12.12 3:37 am

Disregard my last post please, because I read some of the old comments and I decided to give it a shot and change the source file, and guess what: it worked! Your script is really great!

Phil - 05.03.13 11:17 pm

This is just awesome !! Forget about the downright corner of a window to resize it or move it.

Saves a lot of time. Can't work without it smiley for :)

Barry Man - 16.04.13 9:24 am

Are you aware that KDE Mover-Sizer.exe gets reported as containing a trojan by several engines?



Or try submitting it yourself at www.virustotal.com


Nah, it acts as a nice filter. Anyone daft enough to think KDE-Mover-Sizer contains anything malicious doesn't deserve to use tools this cool. Also, it helps folk figure out which AV are truly brainless, which is actually most of them.

;o) Cor

chromax - 21.04.13 4:42 pm

I really love this in combination with windowpad!

One thing I thought about is that when you move a window to the right half with windowpad and want it to increase in width with move-sizer you also accidentally change the height cause you can´t move a perfect horizontal line with a mouse.
The cool thing about this would be like in Photoshop. When you move something (click + move) and hold Shift, all diagonal movement is blocked. You only move it horizontal and vertical until you release shift. So you grab the left side of a window, hold shift and now you can only move horizontal.

In my all day experience the horizontal movement is the most important.

In fact, that's already crossed my mind! It's on my 2do list! Trouble is, I already have a version of KDE-Mover-Sizer waiting to go out, courtesy of Matthias, but I've been having some incompatibility issues between it and MacroExpress. It's got to the point where I'm fairly certain that it's MacroExpress, so I'll probably drop it here in the form of a beta pretty soon (I have a lot of updates to go up in the next week or so).

windowpad looks interesting. I've been using MacroExpress for years, for doing exactly this, and much more (and now in 7, I also use ShellFolderFix to compensate for Windows' dreadful forgetfulness). But MacroExpress is becoming less and less compatible with each version of windows, and the new pro version is a mess. It's often crossed my mind to write my own version with AutoIt/AHK. This may save me a bit of work!

By the way, the term is "constrain". smiley for :D

;o) Cor

Matthias - 15.05.13 11:13 am

No, unfortunately, there is no possibility (yet) to resize a window without showing its content.

KDE-Mover-Sizer uses WinMove, which updates the windows immediately.

You could move this WinMove out of the Update-Loop, which exits when you release the mouse button.
But then you would need to draw your own lines to see the current size&position of the window.

Matthias - 15.05.13 11:18 am

@Barry Man:

"Are you aware that KDE Mover-Sizer.exe gets reported as containing a trojan by several engines?"

Yes, this is a problem when using the Exe Zipper UPX on the compiled script.

As the zipped Exe has 220kB and the unzipped Exe (only) 450kB, I would also vote for not using UPX in the future.

Matthias - 18.07.13 7:05 pm

Update: I added a function to move and resize the window without showing and sent an updated version to Cor for testing. As soon as he finds some time to test and update this page, and if there are no obvious bugs, I'm sure he'll put it online.

It's up!

Apologies for the missing comments! I had a bit of a accident last night and it seems these comments (and only this page!) somehow escape the backup process. Of course, it's only when you go to use backups that you spot these things. smiley for :roll:

I'm piecing them together again from my post dump script and google cache!

Matthias, feel free to add any bits I forgot/missed!

;o) Cor

ps. also note, no UPX this time, though also note this has nothing to do with the above-mentioned (backward!) reasons. UPX is still a great way to tell which AV software is completely crap, but sadly does not support 64 bit apps.

Matthias - 21.08.13 10:23 am

@cor: Just checked - all looks fine!

Maybe as comment for those who arrived through this page:

The five most prominent new features of the version 2.8 of KDE Mover-Sizer are:
• Configurable Hotkeys
• Window-Ignore list
• Constrain Movement to X- or Y-axis
• Mouse Wheel Scrolling on inactive windows
• Quick-Positioning window with Alt during dragging

For everything else, see here or simply give it a try :-)

Feel free to share your opinion here!
an image

KDE-fan - 29.11.13 11:13 pm

Found a solution for a problem when using KDE Mover-Sizer (v 2.8) with Synergy (v 1.4.12).

I have KDE Mover-Sizer on my main PC running Windows 7, and it works wonderfully.
But when I ran Synergy on my main PC as a server, KDE completely stopped working on my main PC.

I turned off the "Elevate" tick box in Synergy on my main PC and voilà, KDE works again!

Pretty simple fix, but hopefully if someone runs into the same issue and googles it, they'll find this.

Absolutely love this program.
Millions of thanks for it.

Thanks for the heads-up! ;o) Cor

pablo - 02.03.14 1:45 am

es muy bueno este programa me a sido de gran utilidad

Gracias! ;o) Cor

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 en, Upper-Case Aye, nein, lower-case aye, Upper-Case You


Welcome to corz.org!

If something isn't working, I'm probably improving it, try again in a minute. If it's still not working, please mail me!