mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 04:55:39 +02:00
refix #369, #388, #392: improve algorithm matching new window to killed one. Add command option -pos_match_threshold, using 40 as default value
This commit is contained in:
parent
8c5d6475ad
commit
cce0f7f52d
3 changed files with 48 additions and 6 deletions
|
@ -74,6 +74,7 @@ if not errorlevel 1 goto wait_to_finish";
|
|||
bool offscreen_fix = true;
|
||||
bool fix_unminimized_window = true;
|
||||
bool enhanced_offscreen_fix = false;
|
||||
bool set_pos_match_threshold = false;
|
||||
bool auto_restore_missing_windows = false;
|
||||
bool auto_restore_from_db_at_startup = false;
|
||||
bool auto_restore_last_capture_at_startup = false;
|
||||
|
@ -143,6 +144,12 @@ if not errorlevel 1 goto wait_to_finish";
|
|||
restore_snapshot = SnapshotCharToId(arg[0]);
|
||||
continue;
|
||||
}
|
||||
else if (set_pos_match_threshold)
|
||||
{
|
||||
set_pos_match_threshold = false;
|
||||
pwp.MaxDiffPos = int.Parse(arg);
|
||||
continue;
|
||||
}
|
||||
|
||||
switch(arg)
|
||||
{
|
||||
|
@ -266,6 +273,9 @@ if not errorlevel 1 goto wait_to_finish";
|
|||
case "-auto_restore_new_window_to_last_capture=1":
|
||||
pwp.autoRestoreNewWindowToLastCapture = true;
|
||||
break;
|
||||
case "-pos_match_threshold":
|
||||
set_pos_match_threshold = true;
|
||||
break;
|
||||
case "-auto_restore_missing_windows":
|
||||
case "-auto_restore_missing_windows=1":
|
||||
auto_restore_missing_windows = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue