MaaFw 4.4.0b2__py3-none-macosx_13_0_arm64.whl → 4.4.1__py3-none-macosx_13_0_arm64.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=OC-qcS4tttz4YvRIf8rBySTS_qPkVb-NfPTl4nUYgAo,727096
18
+ maa/bin/libMaaAgentClient.dylib,sha256=5xBKJhvZflcz6Gp_vcajA0StJ_u1y63qAgFtfAynowM,1439304
19
+ maa/bin/libMaaAgentServer.dylib,sha256=V5-j-08PzNUCVSVvaP2cdXsnpkim5VQieSCwSc1p3Ps,1698856
20
+ maa/bin/libMaaDbgControlUnit.dylib,sha256=MHE8-sQbImdgKkwX7gid5vF04jxVmNMZYyvc4CX_dSA,339624
21
+ maa/bin/libMaaFramework.dylib,sha256=N1NfhoKeby2vquvqfSHSyftTmdWoO986hG4SdsLB2IA,2721880
22
+ maa/bin/libMaaToolkit.dylib,sha256=sit0PkPm5Uw6X-6lI8ifLfV79mBpE9g8qVHYSTUIR-E,947808
23
+ maa/bin/libMaaUtils.dylib,sha256=IILBmdbczkHvL8WeDA48cnkUAiX_kT5pQOWjjbrAgF4,540480
24
+ maa/bin/libfastdeploy_ppocr.dylib,sha256=wWEWPmOW1r012wBZsL6XGdIxeQrJpu-F5RVaW_POiYo,4588712
25
+ maa/bin/libonnxruntime.1.19.2.dylib,sha256=6Zli7s5WaiJ1Qi0Xq6ar-TYZO9MYJTV02IIQUVRFLRA,17341832
26
+ maa/bin/libopencv_world4.4.11.0.dylib,sha256=IGNSWJYqxqVH4td07Hisg2YVNZXfJjCBslFLX7Q2pTk,11587712
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=SqRtGdpuogbgKRVwFY1Ga4NP7T5_9qclWQUlsSHr8Hw,101
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=yyDbNFDdnpeykzAW2mRAAO0_GnE_rfxmsJHMHCCDg7A,752120
18
- maa/bin/libMaaAgentClient.dylib,sha256=4S6l5QqfufRDtvgX4ps7yZ-n-20p0DwzWcqLdP7sfBg,1450776
19
- maa/bin/libMaaAgentServer.dylib,sha256=c83u1G2HrSLxFAonnDZwynnPcTSGdjo1_IYrw86fPkU,1692712
20
- maa/bin/libMaaDbgControlUnit.dylib,sha256=uKDYbV2vq0rvcXjfpMS1l9lfJXHl0lRiH_KyzH16ShQ,361336
21
- maa/bin/libMaaFramework.dylib,sha256=wvR-IEmYIO34lCSAkrUMtX5u2KgMPwDXHyT3nZ8k3eQ,2775768
22
- maa/bin/libMaaToolkit.dylib,sha256=YNDp2WIfJZ8VJZppepq1_YtS127COvHb4vFOvJ441pU,965056
23
- maa/bin/libMaaUtils.dylib,sha256=Iuh8mBW0c3p7lyfVQd2g8MeUItY_af6KFpZ62rBLu0E,582592
24
- maa/bin/libfastdeploy_ppocr.dylib,sha256=HAneULevDZ_uuI-rAYJ18hiV9ERkojA05u2M1jIXt_c,4588632
25
- maa/bin/libonnxruntime.1.19.2.dylib,sha256=12pPNEJbyCk7FN7wR2-ijm_yH5IbD7h81z3NUiK32OU,17341832
26
- maa/bin/libopencv_world4.4.8.0.dylib,sha256=a258ojx3MPVIJEUopsaDnLVInfUHh12qjsIM_8j5P_s,13193344
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=SqRtGdpuogbgKRVwFY1Ga4NP7T5_9qclWQUlsSHr8Hw,101
30
- maafw-4.4.0b2.dist-info/RECORD,,
File without changes