mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
Update ocrtext.py
This commit is contained in:
parent
07fb07ee34
commit
fb8969e050
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user