Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.

You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.

WinDim 1.0.0.4 is a hotkey to get the dimensions of the active window and optionally save them to clipboard. It can also set the dimensions of an active window from the clipboard save, if the target has sizeable border style.

WinDim 1.1.2.0 Removed the "training wheels." No normalize function is performed on width or height of the window. Also it's no longer required to do a "save" before using the "set" hotkey. Winkey +s will bring up the Gui. This enables the precise positioning and/or sizing of the active window by entering numbers in the edit lines. Of course you can still use Winkey +g to get dimensions from the active window.

WinDim 1.1.3.0 WinDim can now be used to Position a window with non-sizeable borders. Attempts to use Size or Both Buttons will display an error dialog if the target window is not sizeable. Minor bug fixes.

I can't tell you what's useful for you. Other than the occasional request for a small script, all my programs are written for my own use. I just share 'em. If you have no desire to precisely position or size a window, then it's likely of no use to you at all.

I find there are a lot of programs here at DC (especially in Coding Snacks where a lot of them are written for one person) that I may not see an immediate use for, and then years later I need it for some reason!

Here's one: If you're a (web) developer that needs to check out how an interface looks at varying resolutions, this tool would make it easy to resize windows to the standard sizes, e.g., 800x600, 1024x768, 1280x1024, etc.. Just a thought.

Try using something like an onscreen caliper or ruler just to get the window's width and height. Then you'll see it's simpler and more exact for simple window width and height, to do it via a Windows function. One function call returns the window's size and position to the pixel.

For one example, every time I open Malwarebyes anti-malware it opens at a different spot. If I want to make a script to launch it with position and size, it's trivial if I have the exact numbers. In fact I think I'll do it now because it's annoying launching, then hotkeying it into place every time I run it.

It's probably more useful for programmers than for the average user. If I have a window that's the perfect size for a particular task, there's no pre-fabricated way to get the exact numbers. Often what people do is lay another window on top and mess around with the mouse trying to get the 2 windows to match perfectly. That's a real time waster.

With WinDim there was no farting around required to get the exact position.

edit: another way of doing the same thing is a utility like WinSize2. Different ways to skin the cat.

edit2: added ErrorLevel check in case MBAM doesn't come up by the time-out. Avoids moving just any active window.

edit3: updated the code so you don't have to run the script and wait for MBAM to come up. It gets the handle as soon as MBAM window is active, rather than depending on it remaining the active window. Should work ok even if different windows are getting the focus. For example, you run this script then use FolderCache to open the last 4 folders.