From fb8969e050c13ea71eeebf2aee2862eceb908b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Wed, 14 Aug 2024 19:53:55 +0800 Subject: [PATCH] Update ocrtext.py --- LunaTranslator/LunaTranslator/textsource/ocrtext.py | 2 ++ 1 file changed, 2 insertions(+) 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]