diff --git a/LunaTranslator/LunaTranslator/textsource/ocrtext.py b/LunaTranslator/LunaTranslator/textsource/ocrtext.py index 197d37a4..3b7bed48 100644 --- a/LunaTranslator/LunaTranslator/textsource/ocrtext.py +++ b/LunaTranslator/LunaTranslator/textsource/ocrtext.py @@ -90,9 +90,11 @@ class ocrtext(basetext): if self.hwnd: if count == len(usehwnds): self.hwnd = hwnd + self.pids = [windows.GetWindowThreadProcessId(hwnd)] else: if count >= len(usehwnds) - 1: self.hwnd = hwnd + self.pids = [windows.GetWindowThreadProcessId(hwnd)] def setstyle(self): [_.setstyle() for _ in self.range_ui]