mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-11 20:21:03 +00:00
Updated Screen Time Feature (markdown)
parent
e605a102a2
commit
793997f0b1
|
@ -3,4 +3,24 @@ Starting from WelsonJS version 0.2.7.27, a feature called 'Screen Time' is suppo
|
|||
|
||||
This was introduced to enable integration with highly restrictive applications. It is useful in cases where integration methods like APIs are not supported, and the status can only be checked visually on the computer screen.
|
||||
|
||||
This feature does not allow operation in the background. It only functions in User Interactive mode, where users can monitor the progress.
|
||||
This feature does not allow operation in the background. It only functions in User Interactive mode, where users can monitor the progress.
|
||||
|
||||
Here’s the English translation:
|
||||
|
||||
## How to Use
|
||||
|
||||
1. Configure the `settings.ini` file as follows:
|
||||
|
||||
```ini
|
||||
[Service]
|
||||
DISABLE_SCREEN_TIME=false
|
||||
; SCREEN_TIME_PARAMS=save
|
||||
```
|
||||
|
||||
The `save` parameter is used when you need to save screenshots. The save directory is located at `app/assets/img/_captured`.
|
||||
|
||||
2. Place the template (image fragment) you want to match in PNG format in the `app/assets/img/_templates` directory. If you need to ignore color values (grayscale), prefix the file name with `binary_`.
|
||||
|
||||
3. Run the service in User Interactive mode. Execute the `startInteractiveService.bat` file.
|
||||
|
||||
4. Through the `onServiceScreenTime()` event, you can receive the name of the matched template (image fragment) and the coordinates where it was matched.
|
Loading…
Reference in New Issue
Block a user