fork of http://www.ninjacrab.com/persistent-windows/ with windows 10 update
Find a file
2020-07-04 17:11:51 -07:00
Ninjacrab.PersistentWindows.Solution disable last fix if restore from DB 2020-07-04 17:11:51 -07:00
.gitignore Updated .gitignore for generated files 2020-04-09 09:48:26 -07:00
README.md Update README.md 2020-07-04 12:25:40 -07:00

PersistentWindows

The code is forked from http://www.ninjacrab.com/persistent-windows/ with massive enhancements to achieve more reliable user experience.

It seems to be a perfect solution to this unsolved Windows problem since Windows 7 era 2b9d5a18-45cc-4c50-b16e-fd95dbf27ff3?page=1&auth=1

Original description

What is PersistentWindows?
A poorly named utility that persists window positions and size when the monitor display count/resolution adjusts 
and restores back to its previous settings.

For those of you with multi-monitors running on a mixture of DisplayPort and any other connection, you can run 
this tool and not have to worry about re-arranging when all is back to normal.

Key features

  • Keeps track of window position change in real time for each monitor setup, and automatically restores window layout with matching monitor setup.
  • Support remote desktop session with multiple virtual monitor resolutions.
  • Can be run as Windows startup job.
  • Starting from V4.1, window position can be manually saved to persistent database on hard drive, making it possible to revert unintended or temporary window moves, or restore closed windows even after reboot.

Installation

  • Download the latest PersistentWindows*.zip file from https://github.com/kangyu-california/PersistentWindows/releases
  • Unzip the file into any directory
  • Optionally create a shortcut to PersistentWindows.exe in C:\Users\<your_user_id>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup to automatically start the program when computer powers up.

Use instructions

  • Run PersistentWindows.exe as normal user, a splash window will pop up, indicating the program has started successfully. There is a command line option "-silent" available to suppress the splash window, you may create a shortcut of PersistentWindows.exe and specify the option in properties of the shortcut.
  • PersistentWindows minimizes itself as an icon in the systray area on task bar.
  • To save current window layout to persistent storage, right click the icon and select "Capture windows to disk"
  • To restore saved window layout from persistent storage, or to recover closed windows after reboot, right click the icon and select "Restore windows from disk"
  • To help restoring taskbar window, make sure taskbar is unlocked (i.e. it can be dragged using mouse), also please do NOT move mouse during window recovery.

Tips for power users

  • Some applications (such as Task Manager, Event Viewer etc) require running PersistentWindows with admin privilege to fully recover window layout.
  • Starting from release 4.23, there is a experimental feature to restore window z-order in addition to two-dementional layout. This feature is disabled by default due to the need to introduce a hack to reset topmost flag to avoid bug #21. To turn on this feature, run PersistentWindows.exe -fix_zorder
  • To help me diagnose a bug, please run Event Viewer, locate to "Windows Logs" -> "Application" section, then search for Event ID 9990 and 9999, and copy paste the content of these events to new issue report.