mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +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 self.hwnd:
|
||||||
if count == len(usehwnds):
|
if count == len(usehwnds):
|
||||||
self.hwnd = hwnd
|
self.hwnd = hwnd
|
||||||
|
self.pids = [windows.GetWindowThreadProcessId(hwnd)]
|
||||||
else:
|
else:
|
||||||
if count >= len(usehwnds) - 1:
|
if count >= len(usehwnds) - 1:
|
||||||
self.hwnd = hwnd
|
self.hwnd = hwnd
|
||||||
|
self.pids = [windows.GetWindowThreadProcessId(hwnd)]
|
||||||
|
|
||||||
def setstyle(self):
|
def setstyle(self):
|
||||||
[_.setstyle() for _ in self.range_ui]
|
[_.setstyle() for _ in self.range_ui]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user