kangyu-california / PersistentWindows

fork of http://www.ninjacrab.com/persistent-windows/ with windows 10 update
GNU General Public License v3.0
1.45k stars 50 forks source link

Poss Workaround for Windows w Dynamic Data in Title? #356

Open d-free opened 1 month ago

d-free commented 1 month ago

My windows have dynamic data which change the titles of many of my program windows. This seems to be the cause of confusion for PersistentWindows as it repositions windows to the wrong monitors or changes them to the incorrect size. Is it possible to have a way to manually define a subset of the first N characters of the window title to be captured in the snapshot capture? For example I found the Firefox Extension "Window Titler" so I set the first characters for each Firefox window title to be static, but the dynamic data is still appended after that.

kangyu-california commented 1 month ago

PW can not guarantee to find matching window with dynamic title, especially when restore from disk. Try latest patch which improves window title matching for auto and snapshot restore when browser is relaunched. PersistentWindows5.59_patch1.zip

d-free commented 1 month ago

Thank you very much for attempting a patch. Unfortunately I still can't get PW to reliably put the windows back to the right size or place. I am running 2 programs which each have 5 or more different windows so I understand matching could be difficult. If alternative matching options are ever developed I would love to give it another try.

I don't know if this is technically feasible or could help at all, but perhaps PW could have its own add-on to the system menu like MenuTools and then using that, the user could manually assign each Window to its desired region and then PW could track that for the auto snapshots.

kangyu-california commented 1 month ago

On another thought, I guess you may have the same issue as #352, where PW does not capture child window automatically by default. You may try run PW with following command line -capture_floating_window

d-free commented 1 month ago

Wow, thank you so much for this! It appears to work perfectly now! Perhaps this can be turned on by default to save others in a similar situation the confusion.

Grateful to enjoy this wonderful tool. Thank you for your development work on this