Skip to content

Latest commit

 

History

History
37 lines (20 loc) · 1.79 KB

README.md

File metadata and controls

37 lines (20 loc) · 1.79 KB

Winlayout

A utility to save and restore window positions on a Windows Desktop.

Install and Use the WinForm App

On the Windows Desktop that you wish to manage: Download and unzip WinLayout-UI.7z and run the WinLayout-UI.exe file. Click the Save button to record the current window locations. Click the Restore button to restore the saved window locations. image

Alternatively, Install and Use Command Line

With the laptop running on the docking station, and application windows in their desired locations, download winLayout.exe run the command:

winlayout save [screen_name (optional)]

Then the next time the laptop is plugged into the docking station, the window locations of the running applications can be restored by the command:

winlayout restore [screen_name (optional)]

For convenience, make a windows short cut to the file winlayout.exe (with the desired parameter) and pin to the task bar for easy access. An optional screen_name can be provided to allow saving multiple screen layout configurations. This option is available for the command line executable.

Building the command line .exe and Winforms .exe

Install .Net 7 SDK onto the developer machine. In the folder, in a cmd shell, run the command:

build.bat

When the build has completed the executable files winlayout.exe and winlayout-ui.exe will be copied to the top level folder of the repository.

Tips

If some windows do not change position when a restore is performed, it might be that these windows are running under Administrator privilege. In this case, run winlayout restore as Administrator and they will move. Visual Studio is commonly affected in this way. Similarly for the Winforms App .exe.