Commit ff7f513 1 parent f04cb8a commit ff7f513 Copy full SHA for ff7f513
File tree 2 files changed +6
-6
lines changed
source/binding/Python/maa
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -346,11 +346,11 @@ class _Toolkit:
346
346
@staticmethod
347
347
def MaaToolkitFindWindow (
348
348
class_name : MaaStringView , window_name : MaaStringView
349
- ) -> MaaWin32Hwnd : ...
349
+ ) -> MaaSize : ...
350
350
@staticmethod
351
351
def MaaToolkitSearchWindow (
352
352
class_name : MaaStringView , window_name : MaaStringView
353
- ) -> MaaWin32Hwnd : ...
353
+ ) -> MaaSize : ...
354
354
@staticmethod
355
355
def MaaToolkitGetWindow (index : MaaSize ) -> MaaWin32Hwnd : ...
356
356
@staticmethod
Original file line number Diff line number Diff line change @@ -94,15 +94,15 @@ def register_action_exec_agent(
94
94
# TODO: 进一步封装 Win32Hwnd 系列函数?
95
95
96
96
@classmethod
97
- def find_window (cls , class_name : str , window_name : str ) -> MaaWin32Hwnd :
97
+ def find_window (cls , class_name : str , window_name : str ) -> MaaSize :
98
98
cls ._set_api_properties ()
99
99
100
100
return Library .toolkit .MaaToolkitFindWindow (
101
101
class_name .encode ("utf-8" ), window_name .encode ("utf-8" )
102
102
)
103
103
104
104
@classmethod
105
- def search_window (cls , class_name : str , window_name : str ) -> MaaWin32Hwnd :
105
+ def search_window (cls , class_name : str , window_name : str ) -> MaaSize :
106
106
cls ._set_api_properties ()
107
107
108
108
return Library .toolkit .MaaToolkitSearchWindow (
@@ -201,13 +201,13 @@ def _set_api_properties():
201
201
MaaStringView ,
202
202
]
203
203
204
- Library .toolkit .MaaToolkitFindWindow .restype = MaaWin32Hwnd
204
+ Library .toolkit .MaaToolkitFindWindow .restype = MaaSize
205
205
Library .toolkit .MaaToolkitFindWindow .argtypes = [
206
206
MaaStringView ,
207
207
MaaStringView ,
208
208
]
209
209
210
- Library .toolkit .MaaToolkitSearchWindow .restype = MaaWin32Hwnd
210
+ Library .toolkit .MaaToolkitSearchWindow .restype = MaaSize
211
211
Library .toolkit .MaaToolkitSearchWindow .argtypes = [
212
212
MaaStringView ,
213
213
MaaStringView ,
You can’t perform that action at this time.
0 commit comments