mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +08:00
fix
This commit is contained in:
parent
1077a49e37
commit
76bee2443a
@ -362,6 +362,7 @@ class texthook(basetext):
|
|||||||
while (not self.ending) and (len(self.pids) == 0):
|
while (not self.ending) and (len(self.pids) == 0):
|
||||||
try:
|
try:
|
||||||
hwnd = windows.GetForegroundWindow()
|
hwnd = windows.GetForegroundWindow()
|
||||||
|
hwnd = windows.GetAncestor(hwnd)
|
||||||
if self.connecthwnd(hwnd):
|
if self.connecthwnd(hwnd):
|
||||||
break
|
break
|
||||||
except:
|
except:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user