fork of http://www.ninjacrab.com/persistent-windows/ with windows 10 update
Find a file
2020-08-01 10:25:22 -07:00
Ninjacrab.PersistentWindows.Solution tag version 4.30 2020-08-01 10:25:22 -07:00
.gitignore Updated .gitignore for generated files 2020-04-09 09:48:26 -07:00
README.md update README 2020-07-20 12:46:11 -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, and automatically restores window layout to last matching monitor setup.
  • Support remote desktop session with multiple virtual monitor resolutions.
  • Can be run as a startup job.
  • Support manual save/restore window position to/from persistent database on hard drive, making it possible to revert unintended or temporary window moves, or restore closed windows even after reboot.
  • Support manual pause/resume auto restore.

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. To disable the splash window, run PersistentWindows.exe -splash_off, or specify the command option in the shortcut or .bat wrapper of PersistentWindows.exe
  • To turn on balloon tip and sound notification when restoring windows, run PersistentWindows.exe -notification_on
  • 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.
  • To pause PersistentWindows, select menu "Pause auto restore"; To resume PersistentWindows, select menu "Resume auto restore", and window layout will be restored to the moment when pause is executed.

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.26, there is an experimental feature to automatically restore window z-order in addition to two-dementional layout. This feature is disabled by default. 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.