42

I need a way to resize any window (not just Firefox!) to specific sizes.

I need to check what the application I'm writing looks like at these resolutions - how many columns are visible in grids, that sort of thing.

I know I could just change my resolution, but that's a hassle, especially for 800x600 - desktop icons get smooshed together and stuff.

bertieb
  • 7,344
  • 36
  • 42
  • 54
Blorgbeard
  • 2,845
  • 3
  • 30
  • 31
  • 2
    Still, changing the screen resolution also takes the taskbar into account. So, when only resizing application windows, then be sure to make it a bit smaller to account for the *available* screen estate. – Arjan Feb 09 '11 at 11:37
  • @Arjan: for Chrome, several web extensions offer a way to exactly set the viewport. See f.ex. https://stackoverflow.com/questions/46998025/how-to-create-a-1280x800-screenshot (by me) – serv-inc Oct 29 '17 at 14:16
  • @serv-inc, while true, that's not what this question is about. – Arjan Oct 29 '17 at 14:50
  • VTR as this is easily phrased as a *how do I achieve X*, not necessarily a *give me a program to X* – bertieb Feb 14 '18 at 23:21

6 Answers6

38

You could write your own with AutoHotkey:

#=:: ; [Win]+[=]
    WinGet, window, ID, A
    InputBox, width, Resize, Width:, , 140, 130
    InputBox, height, Resize, Height:, , 140, 130
    WinMove, ahk_id %window%, , , , width, height
    return

Demonstration:

Before: 640 x 480

before

  1. Press Win+=.

  2. Enter a width:

    width

  3. Enter a height:

    height

After: 400 x 300

after

Note: To set a length to 0, you have to input 0. An empty value is ignored. For example, if you only want to resize the height, leave the width blank and enter a value for the height.


For the curious: 0 x 0

smallest

As you can see, a window with a title bar and controls has an absolute minimum size.

iglvzx
  • 23,459
  • 13
  • 85
  • 122
  • For those interested, Here is a similar approach to change one of the four (X,Y,width,height) of active window. [autohotkey: how to resize window by both absolute and relative height](https://stackoverflow.com/a/46809005/3625404) – qeatzy Oct 18 '17 at 11:30
  • 1
    I set a window in W10 to 960x540, but the result is 946x533. Do I need to add a value for the title bar and scrolling bar, so its more an inner dimension than an outer? – mgutt Jun 28 '20 at 09:41
  • @mgutt Same for me. I've found that it can be worked around on a per-application basis with code such as the following just before the line `WinMove`: `if WinActive("ahk_exe chrome.exe") { width += 16 height += 8 }` – mythofechelon Sep 20 '20 at 15:00
29

Check out Sizer ...

Sizer is a tiny freeware utility that gives you an easy and fast way to resize any window to an exact size. It could be a very useful tool for webmasters and web designers.

Karan
  • 55,947
  • 20
  • 119
  • 191
JP Alioto
  • 6,450
  • 29
  • 29
2

I suggest WinSize2.

  • Simple, fast, and easy to manage by using Alt++ And Alt+- keys to increase/decrease the size of the current window.
  • Working on any Windows version, or at least I have tested it on Windows XP, 7 and 8.
  • Free Software.
wjandrea
  • 595
  • 8
  • 19
Sopalajo de Arrierez
  • 6,603
  • 11
  • 63
  • 97
1

When it comes to the latest versions of Windows 10 (2021) I had the best luck with Window Resizer

I always have 3 browser windows open and I prefer all of them to be the exact same size all over lapping each other spot on. Plus I greatly dislike having a ton of things running in the notification area. You can run this app, restore your windows then close the app.

Justin Emlay
  • 160
  • 1
  • 9
1

I do not know if it was a coincidence, but right after installing SIZER my Windows interface totally malfunctioned - the start menu got transparent windows was not refreshing and I could not click anything. I had to disable transparency in Windows 10 to fix this. Did anyone have such an issue too?

I ended up using this : https://www.mindgems.com/article/resize-window-to-specific-size-set-window-size-in-pixels/

Actually, I am quite happy with it as it is really easy. If you press CTRL+SHIF+R on any window a dialog appears and you can enter the sizes that you want. The current size of the window is displayed too.

On top of that, you can capture and annotate screenshots too. Give it a try I am sure you will love it. I tested it on Windows 10 and 11 and it does the job perfectly.

enter image description here

enter image description here

Sarah Williams
  • 101
  • 1
  • 3
1

You can do that with the WS Grid+ Window Manager. It costs 4.99 EUR but there is a 7-days trial for you to test.

I am using it with Windows 11 and it works great:

WS Grid+ Window Manager

Benny Code
  • 507
  • 5
  • 5