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.
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.
I just open sourced an app that can remember and restore window layouts. See https://github.com/adamsmith/WindowsLayoutSnapshot.
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”.
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.
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).
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.
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.