Wait for some ms before activating auto next

This commit is contained in:
2025-12-20 21:26:09 +01:00
parent 7283fc975c
commit ec2a7aef70

View File

@@ -369,14 +369,18 @@
This.AutoForwardEnabled[groupIdx] := false
This.AutoForwardVisited[groupIdx] := []
} else {
; Enable and mark current window as first visited
This.AutoForwardEnabled[groupIdx] := true
This.AutoForwardVisited[groupIdx] := []
This.AutoForwardProcessedWindow := 0 ; Reset so current window can receive input
try {
ActiveTitle := This.CleanTitle(WinGetTitle("A"))
This.AutoForwardVisited[groupIdx].Push(ActiveTitle)
}
; Enable with delay to allow keyup to process first
SetTimer(ObjBindMethod(This, "EnableAutoForward", groupIdx), -100)
}
}
EnableAutoForward(groupIdx) {
This.AutoForwardEnabled[groupIdx] := true
This.AutoForwardVisited[groupIdx] := []
This.AutoForwardProcessedWindow := 0
try {
ActiveTitle := This.CleanTitle(WinGetTitle("A"))
This.AutoForwardVisited[groupIdx].Push(ActiveTitle)
}
}