You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is also possible to combine both approaches, using low-code as a form of "wrapper" for invocation.
7
7
Below are several common integration methods:
8
8
9
-
### Complete Dependence on JSON Low-Code Programming (Using MaaPiCli.exe)
9
+
### Pure Json low-code programming (with common UI)
10
10
11
11
This method is simple and quick, but not very flexible. It is recommended for beginners and those new to programming with MaaFramework.
12
-
We provide a [🎞️ video tutorial](https://www.bilibili.com/video/BV1yr421E7MW) and [⭐ project template](https://github.com/MaaXYZ/MaaPracticeBoilerplate) for this method. Here is an example:
12
+
We provide a [🎞️ video tutorial](https://www.bilibili.com/video/BV1yr421E7MW) and [⭐ boilerplate](https://github.com/MaaXYZ/MaaPracticeBoilerplate) for this method. Here is an example:
13
13
14
14
```jsonc
15
15
// JSON does not support comments; this is pseudo-code for reference only and cannot be executed directly
@@ -32,10 +32,10 @@ We provide a [🎞️ video tutorial](https://www.bilibili.com/video/BV1yr421E7M
32
32
33
33
### Use JSON Low-Code Programming with Custom Logic for Complex Tasks
34
34
35
-
**💡MaaFW 4.x version highlights**
35
+
**💡MaaFW v4.x version highlights**
36
36
37
-
Use the universal GUI or CLI to run MaaFW and register custom tasks in the child process (AgentServer).
38
-
This method can be seamlessly switched from 1. Here is an example:
37
+
Based on the above pure Json low-code programming, register your custom task in the child process (AgentServer).
38
+
This method can be seamlessly switched from pure Json low-code and is also applicable to [⭐ boilerplate](https://github.com/MaaXYZ/MaaPracticeBoilerplate). The following is an example:
39
39
40
40
```jsonc
41
41
{
@@ -94,6 +94,8 @@ For details, please refer to [this commit](https://github.com/MaaXYZ/MaaPractice
94
94
95
95
You can use low-code as a "wrapper" for invocation or register custom callbacks.
96
96
97
+
This method is not applicable to the boilerplate. You need to prepare resource files yourself.
98
+
97
99
```python
98
100
# This is pseudo code, for reference only, and cannot be run directly
99
101
# "Recognize and click the start button", "Recognize and click the confirmation icon" and so on are all logic in Json
@@ -115,7 +117,7 @@ def main():
115
117
116
118
## Prepare resource files
117
119
118
-
*⭐If you use the project template, just modify it directly in [folder](https://github.com/MaaXYZ/MaaPracticeBoilerplate/tree/main/assets/resource).*
120
+
*⭐If you use the boilerplate, just modify it directly in [folder](https://github.com/MaaXYZ/MaaPracticeBoilerplate/tree/main/assets/resource).*
119
121
120
122
You need to prepare some resource files with the typical file structure as follows:
121
123
@@ -155,17 +157,15 @@ Tools:
155
157
156
158
The files in `my_resource/image` are primarily used for template matching images, feature detection images, and other images required by the pipeline. They are read based on the `template` and other fields specified in the pipeline.
157
159
158
-
Please note that the images used need to be cropped from the lossless original image and scaled to 720p. If you use an Android emulator, please use the screenshot function that comes with the emulator! (You cannot directly take screenshots of the emulator window)
159
-
160
-
**UNLESS YOU EXACTLY KNOW HOW MAAFRAMEWORK PROCESSES, DO USE THE CROPPING TOOLS BELOW TO OBTAIN IMAGES.**
160
+
Please note that the images used need to be cropped from the lossless original image and scaled to 720p. **UNLESS YOU EXACTLY KNOW HOW MAAFRAMEWORK PROCESSES, DO USE THE CROPPING TOOLS BELOW TO OBTAIN IMAGES.**
161
161
162
162
-[Image Cropping and ROI Extraction Tool](https://github.com/MaaXYZ/MaaFramework/tree/main/tools/ImageCropper)
Copy file name to clipboardexpand all lines: docs/en_us/1.2-ExplanationOfTerms.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@
32
32
33
33
-**Agent**
34
34
35
-
The highlight of MaaFW 4.x is that it can separate the MaaFW body and `CustomRecognition` / `CustomAction` into two independent processes.
35
+
💡 MaaFW v4.x version highlights, that it can separate the MaaFW body and `CustomRecognition` / `CustomAction` into two independent processes.
36
36
For example, the body runs in a common GUI written in C#, and at the same time runs your own Custom logic in Python code, breaking the language barrier.
0 commit comments