This commit is contained in:
恍兮惚兮 2024-08-28 15:03:59 +08:00
parent 1077a49e37
commit 76bee2443a

View File

@ -362,6 +362,7 @@ class texthook(basetext):
while (not self.ending) and (len(self.pids) == 0):
try:
hwnd = windows.GetForegroundWindow()
hwnd = windows.GetAncestor(hwnd)
if self.connecthwnd(hwnd):
break
except: