diff --git a/Screen-Time-Feature.md b/Screen-Time-Feature.md index ccde296..76cfe28 100644 --- a/Screen-Time-Feature.md +++ b/Screen-Time-Feature.md @@ -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. \ No newline at end of file +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. \ No newline at end of file