MaaFw 4.4.0b2__py3-none-macosx_13_0_x86_64.whl → 4.4.1__py3-none-macosx_13_0_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of MaaFw might be problematic. Click here for more details.

Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
maa/bin/libMaaUtils.dylib CHANGED
Binary file
Binary file
Binary file
maa/custom_action.py CHANGED
@@ -88,5 +88,8 @@ class CustomAction(ABC):
88
88
  elif isinstance(result, bool):
89
89
  return int(result)
90
90
 
91
+ elif result is None:
92
+ return int(True)
93
+
91
94
  else:
92
95
  raise TypeError(f"Invalid return type: {result!r}")
maa/custom_recognition.py CHANGED
@@ -95,9 +95,6 @@ class CustomRecognition(ABC):
95
95
  detail_buffer.set(result.detail)
96
96
  return int(result.box is not None)
97
97
 
98
- elif result is None:
99
- return int(False)
100
-
101
98
  # RectType
102
99
  elif (
103
100
  isinstance(result, Rect)
@@ -108,5 +105,8 @@ class CustomRecognition(ABC):
108
105
  rect_buffer.set(result)
109
106
  return int(True)
110
107
 
108
+ elif result is None:
109
+ return int(False)
110
+
111
111
  else:
112
- raise ValueError("Invalid return type")
112
+ raise TypeError(f"Invalid return type: {result!r}")
maa/tasker.py CHANGED
@@ -156,17 +156,6 @@ class Tasker:
156
156
  )
157
157
  )
158
158
 
159
- @staticmethod
160
- def set_show_hit_draw(show_hit_draw: bool) -> bool:
161
- cbool = ctypes.c_bool(show_hit_draw)
162
- return bool(
163
- Library.framework().MaaSetGlobalOption(
164
- MaaOption(MaaGlobalOptionEnum.ShowHitDraw),
165
- ctypes.pointer(cbool),
166
- ctypes.sizeof(ctypes.c_bool),
167
- )
168
- )
169
-
170
159
  @staticmethod
171
160
  def set_debug_mode(debug_mode: bool) -> bool:
172
161
  cbool = ctypes.c_bool(debug_mode)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: MaaFw
3
- Version: 4.4.0b2
3
+ Version: 4.4.1
4
4
  Summary: An automation black-box testing framework based on image recognition
5
5
  Project-URL: Homepage, https://github.com/MaaXYZ/MaaFramework
6
6
  Author: MaaXYZ
@@ -66,8 +66,8 @@ _✨ 基于图像识别的自动化黑盒测试框架 ✨_
66
66
  - [MFAWPF](https://github.com/SweetSmellFox/MFAWPF) ![csharp](https://img.shields.io/badge/C%23-239120?logo=csharp&logoColor=white) ![license](https://img.shields.io/github/license/SweetSmellFox/MFAWPF) ![activity](https://img.shields.io/github/commit-activity/m/SweetSmellFox/MFAWPF?color=%23ff69b4) ![stars](https://img.shields.io/github/stars/SweetSmellFox/MFAWPF?style=social) [![mirrorc](https://img.shields.io/badge/Mirror%E9%85%B1-%239af3f6?logo=countingworkspro&logoColor=4f46e5)](https://mirrorchyan.com/zh/projects?source=maafw-badge)
67
67
  基于 MAA 全新架构的 通用 GUI。由 MaaFramework 强力驱动!
68
68
 
69
- - [MFW-PyQt6](https://github.com/overflow65537/MFW-PyQt6) ![python](https://img.shields.io/badge/Python-3776AB?logo=python&logoColor=white) ![license](https://img.shields.io/github/license/overflow65537/MFW-PyQt6) ![activity](https://img.shields.io/github/commit-activity/m/overflow65537/MFW-PyQt6?color=%23ff69b4) ![stars](https://img.shields.io/github/stars/overflow65537/MFW-PyQt6?style=social) [![mirrorc](https://img.shields.io/badge/Mirror%E9%85%B1-%239af3f6?logo=countingworkspro&logoColor=4f46e5)](https://mirrorchyan.com/zh/projects?source=maafw-badge)
70
- 基于PyQt6的通用GUI。由 MaaFramework 强力驱动!
69
+ - [MFW-CFA](https://github.com/overflow65537/MFW-PyQt6) ![python](https://img.shields.io/badge/Python-3776AB?logo=python&logoColor=white) ![license](https://img.shields.io/github/license/overflow65537/MFW-PyQt6) ![activity](https://img.shields.io/github/commit-activity/m/overflow65537/MFW-PyQt6?color=%23ff69b4) ![stars](https://img.shields.io/github/stars/overflow65537/MFW-PyQt6?style=social) [![mirrorc](https://img.shields.io/badge/Mirror%E9%85%B1-%239af3f6?logo=countingworkspro&logoColor=4f46e5)](https://mirrorchyan.com/zh/projects?source=maafw-badge)
70
+ 基于PySide6的通用GUI。由 MaaFramework 强力驱动!
71
71
 
72
72
  - [MFAAvalonia](https://github.com/SweetSmellFox/MFAAvalonia) ![csharp](https://img.shields.io/badge/C%23-239120?logo=csharp&logoColor=white) ![license](https://img.shields.io/github/license/SweetSmellFox/MFAAvalonia) ![activity](https://img.shields.io/github/commit-activity/m/SweetSmellFox/MFAAvalonia?color=%23ff69b4) ![stars](https://img.shields.io/github/stars/SweetSmellFox/MFAAvalonia?style=social) [![mirrorc](https://img.shields.io/badge/Mirror%E9%85%B1-%239af3f6?logo=countingworkspro&logoColor=4f46e5)](https://mirrorchyan.com/zh/projects?source=maafw-badge)
73
73
  基于 Avalonia 的 通用 GUI。由 MaaFramework 强力驱动!
@@ -94,7 +94,7 @@ _✨ 基于图像识别的自动化黑盒测试框架 ✨_
94
94
  - [MAS](https://github.com/MaaXYZ/MaaAssistantSkland) ![Pipeline](https://img.shields.io/badge/Pipeline-%23876f69?logo=paddypower&logoColor=%23FFFFFF) ![license](https://img.shields.io/github/license/MaaXYZ/MaaAssistantSkland) ![activity](https://img.shields.io/github/commit-activity/m/MaaXYZ/MaaAssistantSkland?color=%23ff69b4) ![stars](https://img.shields.io/github/stars/MaaXYZ/MaaAssistantSkland?style=social)
95
95
  森空岛 小助手。图像技术 + 模拟控制,解放双手!由 MaaFramework 强力驱动!
96
96
 
97
- - [MSBA](https://github.com/overflow65537/MAA_SnowBreak) ![Pipeline](https://img.shields.io/badge/Pipeline-%23876f69?logo=paddypower&logoColor=%23FFFFFF) ![license](https://img.shields.io/github/license/overflow65537/MAA_SnowBreak) ![activity](https://img.shields.io/github/commit-activity/m/overflow65537/MAA_SnowBreak?color=%23ff69b4) ![stars](https://img.shields.io/github/stars/overflow65537/MAA_SnowBreak?style=social) [![mirrorc](https://img.shields.io/badge/Mirror%E9%85%B1-%239af3f6?logo=countingworkspro&logoColor=4f46e5)](https://mirrorchyan.com/zh/projects?source=maafw-badge)
97
+ - [MSBA](https://github.com/overflow65537/MAA_SnowBreak) ![Pipeline](https://img.shields.io/badge/Pipeline-%23876f69?logo=paddypower&logoColor=%23FFFFFF)![python](https://img.shields.io/badge/Python-3776AB?logo=python&logoColor=white) ![license](https://img.shields.io/github/license/overflow65537/MAA_SnowBreak) ![activity](https://img.shields.io/github/commit-activity/m/overflow65537/MAA_SnowBreak?color=%23ff69b4) ![stars](https://img.shields.io/github/stars/overflow65537/MAA_SnowBreak?style=social) [![mirrorc](https://img.shields.io/badge/Mirror%E9%85%B1-%239af3f6?logo=countingworkspro&logoColor=4f46e5)](https://mirrorchyan.com/zh/projects?source=maafw-badge)
98
98
  尘白禁区 小助手。图像技术 + 模拟控制,解放双手!由 MaaFramework 强力驱动!
99
99
 
100
100
  - [MaaYYs](https://github.com/TanyaShue/MaaYYs) ![python](https://img.shields.io/badge/Python-3776AB?logo=python&logoColor=white) ![qt](https://img.shields.io/badge/Qt6-41CD52?logo=Qt&logoColor=white) ![license](https://img.shields.io/github/license/TanyaShue/MaaYYs) ![activity](https://img.shields.io/github/commit-activity/m/TanyaShue/MaaYYs?color=%23ff69b4) ![stars](https://img.shields.io/github/stars/TanyaShue/MaaYYs?style=social) [![mirrorc](https://img.shields.io/badge/Mirror%E9%85%B1-%239af3f6?logo=countingworkspro&logoColor=4f46e5)](https://mirrorchyan.com/zh/projects?source=maafw-badge)
@@ -0,0 +1,30 @@
1
+ maa/__init__.py,sha256=t2Z9yJWrSZfH16xYN67bKpiPEHDf7iaiw4wi0PjmU8U,250
2
+ maa/agent_client.py,sha256=qx1-3VGp97JB_UMlbkvK-O_GTigbdqD6U4gGKi2yQW4,4049
3
+ maa/buffer.py,sha256=XFr1MnWt-xmZkhQ_2ZzGfiqSJJwmphY4U07EEzMNYQc,16544
4
+ maa/context.py,sha256=dYCvRNqq2iCL8lIyp2TkZorGB5KNI34L3pGzlpdL7co,6454
5
+ maa/controller.py,sha256=V9ALn24vQX-mWngZbuapBcv-_HNHCtUwHXa3Em2X13s,22517
6
+ maa/custom_action.py,sha256=honGd28UaKWzApYBHO9_Cka8hPfzZUy6HBUfIdfQiaU,2554
7
+ maa/custom_recognition.py,sha256=nfNgPKq9a6t2eoXwKMJRvZMXTh31Jn0JfxUMsfGI33Y,3384
8
+ maa/define.py,sha256=qec4GQkYi6AtorJ1ix880Fz67bpZULJOV3VpZEDd2Es,13341
9
+ maa/job.py,sha256=MUI5T2X9ON9c7Dl6yo_0pp8Ulpn25XOD_uEdGm2k-TA,1231
10
+ maa/library.py,sha256=u6gbEHDV3I0y69-ZoBo1p6-bAtP4jqSQa4FICuzaw3U,3961
11
+ maa/notification_handler.py,sha256=LFJY6YqF9fJSkRsvpmj6ZL5DexMN_cEOj-HmpWpB9o0,5442
12
+ maa/resource.py,sha256=sCGAK1FFjZCaf01t_FPdtl4pMDQsybhEjmafp9XfITA,12222
13
+ maa/tasker.py,sha256=FDZwh9ai9Z-1hytRUFAiEwXGhruvHMCKPrbGSAOWxmY,14449
14
+ maa/toolkit.py,sha256=H7P58dPLKzEm_aZMsDJ98IaMZnTE-hcFgK8MKnN0F6g,11381
15
+ maa/agent/__init__.py,sha256=K4vyyD6YgLR6PEQl86t4oKP4eViCdNr3Br94dNk8YjM,257
16
+ maa/agent/agent_server.py,sha256=e0yE_ffWJlTPydJbYLK9OhCM5fVVlZQIcvEQMjB5V68,3636
17
+ maa/bin/libMaaAdbControlUnit.dylib,sha256=yyVtw53HC20OSuTrIQIXPOgf3JgfLpPlOpe70QY34aM,757128
18
+ maa/bin/libMaaAgentClient.dylib,sha256=1znuu2By1_r3-EfLxPb2_uhbyaKA1VtRLL1i5s9Kcm4,1453688
19
+ maa/bin/libMaaAgentServer.dylib,sha256=hsZkQSJ7oEten488SLYtJ942OCd2udfFYFopk_vFjGE,1725840
20
+ maa/bin/libMaaDbgControlUnit.dylib,sha256=bC4Tse2ut47lykOFlkeAwF9wRoCttP_b5MCrA9fIgYA,329992
21
+ maa/bin/libMaaFramework.dylib,sha256=ZpKCY5mWq0-P3mD4dXrEMaKlGFoxDVqGnOOAuq1uXs0,2879512
22
+ maa/bin/libMaaToolkit.dylib,sha256=22kmml6aZHOuqNCd3ixEnaYgOcryaywj16orx7hA8Vs,973024
23
+ maa/bin/libMaaUtils.dylib,sha256=n6tkpHX_5ULAS0uSuQieiAI0gzr-ovbONjGYS3cNfbA,541208
24
+ maa/bin/libfastdeploy_ppocr.dylib,sha256=qQVfZuIKyeKCjzfcEWbuM5ZKegpv6YmOgsACd_8CIbM,5828304
25
+ maa/bin/libonnxruntime.1.19.2.dylib,sha256=8ljJL__me6uJ46EopPFvyK0l2_ZbxtK-57EfSWO8ohg,19921160
26
+ maa/bin/libopencv_world4.4.11.0.dylib,sha256=oxczEPffDVIxEnOVZ5aahIzqXuXwYDzffokxOxWjpw8,13909376
27
+ maafw-4.4.1.dist-info/licenses/LICENSE.md,sha256=RG51X65V_wNLuyG-RGcLXxFsKyZnlH5wNvK_5mMlOag,7560
28
+ maafw-4.4.1.dist-info/METADATA,sha256=EjAy1dUkGwkbs7Xe_VU9TqPLD0lBOp412sIct4XUd5g,24435
29
+ maafw-4.4.1.dist-info/WHEEL,sha256=uH4n7Su0XdKLw9IB_vCifAJxZvl_ChRwTrm1-ddvWvA,102
30
+ maafw-4.4.1.dist-info/RECORD,,
@@ -1,30 +0,0 @@
1
- maa/__init__.py,sha256=t2Z9yJWrSZfH16xYN67bKpiPEHDf7iaiw4wi0PjmU8U,250
2
- maa/agent_client.py,sha256=qx1-3VGp97JB_UMlbkvK-O_GTigbdqD6U4gGKi2yQW4,4049
3
- maa/buffer.py,sha256=XFr1MnWt-xmZkhQ_2ZzGfiqSJJwmphY4U07EEzMNYQc,16544
4
- maa/context.py,sha256=dYCvRNqq2iCL8lIyp2TkZorGB5KNI34L3pGzlpdL7co,6454
5
- maa/controller.py,sha256=V9ALn24vQX-mWngZbuapBcv-_HNHCtUwHXa3Em2X13s,22517
6
- maa/custom_action.py,sha256=V-kJ-5ahcImnzrZBbAH_RJqoiQ7RjBT39ffdSOi9_c4,2495
7
- maa/custom_recognition.py,sha256=P8Kfh4PWoQXyw7loE-9zv_VCD2HUcE6qkIXCK_Ye9a4,3372
8
- maa/define.py,sha256=qec4GQkYi6AtorJ1ix880Fz67bpZULJOV3VpZEDd2Es,13341
9
- maa/job.py,sha256=MUI5T2X9ON9c7Dl6yo_0pp8Ulpn25XOD_uEdGm2k-TA,1231
10
- maa/library.py,sha256=u6gbEHDV3I0y69-ZoBo1p6-bAtP4jqSQa4FICuzaw3U,3961
11
- maa/notification_handler.py,sha256=LFJY6YqF9fJSkRsvpmj6ZL5DexMN_cEOj-HmpWpB9o0,5442
12
- maa/resource.py,sha256=sCGAK1FFjZCaf01t_FPdtl4pMDQsybhEjmafp9XfITA,12222
13
- maa/tasker.py,sha256=cAkYW8Mu5rAgsPlSGacTjJ830sF2yFtvlmXRvIJt-A4,14811
14
- maa/toolkit.py,sha256=H7P58dPLKzEm_aZMsDJ98IaMZnTE-hcFgK8MKnN0F6g,11381
15
- maa/agent/__init__.py,sha256=K4vyyD6YgLR6PEQl86t4oKP4eViCdNr3Br94dNk8YjM,257
16
- maa/agent/agent_server.py,sha256=e0yE_ffWJlTPydJbYLK9OhCM5fVVlZQIcvEQMjB5V68,3636
17
- maa/bin/libMaaAdbControlUnit.dylib,sha256=jcriJ-vs7iVelHIoiXCUaf66taFWVwkZLY9UMalXZD0,771240
18
- maa/bin/libMaaAgentClient.dylib,sha256=X0BmRasFi4B-jmwdFWz0EYA2f_dKbj1yrrUj14rQRpQ,1465928
19
- maa/bin/libMaaAgentServer.dylib,sha256=BLMfM8RXmts0aUEE800nj5eShcFdOOqQInN93dNuoCA,1699512
20
- maa/bin/libMaaDbgControlUnit.dylib,sha256=wO2A1k7cwp3baTA0Y9Zww0uw-vUAzwSad2w9xpYGYnM,347920
21
- maa/bin/libMaaFramework.dylib,sha256=ZuwGGzdnnSemyvYLOyzH4b_uh_YlbdGzQAu9hGsGalk,2888360
22
- maa/bin/libMaaToolkit.dylib,sha256=WjYubw3hGzLzjHZtLVJ28TTRpwUlx9AMO1laZK-8Cb4,993032
23
- maa/bin/libMaaUtils.dylib,sha256=X75CN6V-qAztUIIIoUrV9AAG3uqWH8Sugpzbcmygkxk,588016
24
- maa/bin/libfastdeploy_ppocr.dylib,sha256=kFxpYAawihiGofHIiOe8Q1p-PCdRG7q4PsaCnhohIwg,5828240
25
- maa/bin/libonnxruntime.1.19.2.dylib,sha256=6FX7LDczOFARpdTe8r2otMXgvlMtkaHcfQSzXMgxT4A,19921160
26
- maa/bin/libopencv_world4.4.8.0.dylib,sha256=OYyb77pNXcqdUQEVTXE6Nz_iWS7jp9Zr3rZOw2DNpy0,16908328
27
- maafw-4.4.0b2.dist-info/licenses/LICENSE.md,sha256=RG51X65V_wNLuyG-RGcLXxFsKyZnlH5wNvK_5mMlOag,7560
28
- maafw-4.4.0b2.dist-info/METADATA,sha256=HW5JiXBi4dY3E-cK3_8a8F-U5nYoHiKG5XG0uittEqU,24356
29
- maafw-4.4.0b2.dist-info/WHEEL,sha256=uH4n7Su0XdKLw9IB_vCifAJxZvl_ChRwTrm1-ddvWvA,102
30
- maafw-4.4.0b2.dist-info/RECORD,,
File without changes