Save window locations of applications

22

11

I am trying to find a way to have a button or key combination that, when pushed, would rearrange all the windows on the desktop to a pre-determined state. There are five programs that need to be arranged to fit in a certain way. I first thought of AutoHotkey, but honestly I have no idea how to approach that method.

Unfundednut

Posted 2011-02-01T13:51:40.733

Reputation: 6 650

Answers

9

DisplayFusion can create monitor profiles that memorize and recall desktop placement and resolution as well as program window placement. You might be able to take advantage of that latter feature.

Chris

Posted 2011-02-01T13:51:40.733

Reputation: 484

Feature Request - Remember window positions – Ƭᴇcʜιᴇ007 – 2014-09-29T18:22:51.083

FYI, looks like "Save or Restore all window locations" is a Pro Standard feature (i.e. not free) https://www.displayfusion.com/Compare/

– Dunc – 2017-01-05T12:19:34.580

10

I just open sourced an app that can remember and restore window layouts. See https://github.com/adamsmith/WindowsLayoutSnapshot.

adam smith

Posted 2011-02-01T13:51:40.733

Reputation: 211

2Awesome, @Adam. Simple, but awesome. Thanks a lot, but is it possible to launch it via hotkey? Maybe your program has some command line parameter? The docs show nothing about it. – Sopalajo de Arrierez – 2014-09-29T21:01:09.770

author no longer maintains this. perhaps consider a fork, e.g. https://github.com/lapo-luchini/WindowsLayoutSnapshot/tree/v1.3.0.0

– TT-- – 2018-10-02T14:05:11.733

NB: "Snapshots are not stored across app instances (or, thus, restarts)" and also the automatically taken snapshots seem to eventually overwrite manually created ones in the list. – TT-- – 2018-10-04T22:31:34.707

7

WinSize2 is a program written in AutoHotKey that can make Windows remember window position, size and more. The program gives you the ability to save the window size and location for any program or folder.

To save any window position, click on the Windows title bar to make sure the window is active and press the hotkey Ctrl+Alt+Z. A tooltip message will confirm that the position has been saved. Now if you close the window and open it again, the program window will be automatically resized and moved to the position where you saved it.

You can edit the behavior and position of any previously saved window by right-clicking on the tray icon and choosing “Special Parameters”.

enter image description here

Here you can manually enter window position coordinates and size, force the window to open maximized, minimized, full screen or hidden, make it “always on top” and even enter a delay between opening the window and resizing.

WinSize2 works on all versions of Windows right from 95 to 7.

enter image description here

Mehper C. Palavuzlar

Posted 2011-02-01T13:51:40.733

Reputation: 51 093

Looked promising but doesn't work. I opened one of the applications hit the hotkey. It 'saved'. I brought up the dialog and checked 'always' and when I relaunch the application it launches in maximize like normal. – Unfundednut – 2011-02-01T17:41:10.173

@MrStatic: I have no experience using this app but looking at the "Rating and Reviews" on the project page, I can say the program should work without problems. Maybe you could reexamine the settings of the program (there seems to be a lot of settings!) and retry. This is all I can say at the moment. – Mehper C. Palavuzlar – 2011-02-01T18:15:45.233

It didn't work for me either. Behavior was very odd, some windows it put in wrong places, others it just did nothing with, others would open then resize then move to the (correct) position. ALl in all I found it to be pretty useless. – Colin Jack – 2011-09-07T21:10:32.497

5

I had this same problem so I built a small application to take care of it. Free, no ads, just works. You can find it under my "Freeware" section, called "TAN Window Manager". I use it everyday.

Simply place a shortcut to the program in your startup folder so it runs at boot. Open all the programs you want to save and place them where you want. Right-click the TAN Window Manager icon that will be in your tray and click 'Save Window Locations'. In the popup check the windows you want to save and click 'Save'. Now you can use the 'Restore Window Locations' button to magically move your saved windows back to where you placed them. The program is a standalone EXE, no install routine, just place the EXE anywhere you like.

Todd

Todd1561

Posted 2011-02-01T13:51:40.733

Reputation: 51

1

Welcome to Super User! Please read how to recommend software in answers, particularly the bits in bold; then edit your answer to follow the guidelines there. Thanks!

– bertieb – 2018-09-19T21:41:38.553

1I just installed your program on my Windows 10 machine that uses two monitors, 1° = 1920x1200 in portrait mode, 2° = 4k in landscape. I had to convince my antivirus program it was safe, but after that it seems to work as advertised. – Rocky Scott – 2019-02-22T12:41:02.783

Cool, glad it worked for you, thanks for commenting. I’ll have to look into what’s involved to get it ‘trusted’ by the various A/V programs. But rest assured it’s safe. Looks like it’s my only app I didn’t upload the source. I’ll add that later today. – Todd1561 – 2019-02-23T14:45:35.727

1

Download winLayout.exe

To save current window positions on multiple monitors:

winLayout save

To restore window positions:

winLayout restore

It's no frills, just a single .exe file. To make it easy to run, create a task bar short cut for it.

Disclaimer: I am the author.

Phillip Ngan

Posted 2011-02-01T13:51:40.733

Reputation: 1 210

Please do not post the same answer to multiple questions. If the same information really answers both questions, then one question (usually the newer one) should be closed as a duplicate of the other. You can indicate this by voting to close it as a duplicate or, if you don't have enough reputation for that, raise a flag to indicate that it's a duplicate. Otherwise tailor your answer to this question and don't just paste the same answer in multiple places.

– DavidPostill – 2019-08-27T17:18:36.017

3@DavidPostill > If the same information really answers both questions, then one question (usually the newer one) should be closed as a duplicate of the other. Interesting philosophical question. Can the same answer apply to two different questions? I'd have thought the answer is yes? "What is your favourite food?" / "What solid food is made at a dairy?" The answer to both is "Cheese"... – Ian Grainger – 2019-09-26T09:00:14.263

1

As @AdamSmith, but from command line, I have designed a program to save and restore the windows, too.

Here it is, on another thread, if you need it (.exe files and .ahk source code).

Sopalajo de Arrierez

Posted 2011-02-01T13:51:40.733

Reputation: 5 328

0

So far my favorite solution so far is a program by DeskSoft called "WindowManager", as found here: http://www.desksoft.com/WindowManager.htm

Takes a little bit to understand its interface, but once you do you will realize how much flexibility it has with how simplistic the task is. You choose how it finds the types of windows you want to arrange (name, process name, etc) then it will try to arrange it for you, and you can use a hotkey if the window changes after it is launched, for example.

I really wish this was an optional Windows feature, being that the OS is called Windows after all, but I digress. It seems they tried to use the snap feature to do this sort of thing, but this program is much more reliable and flexible in my experience.

Mark

Posted 2011-02-01T13:51:40.733

Reputation: 11