-
-
Notifications
You must be signed in to change notification settings - Fork 17
Screen Time Feature
Starting from WelsonJS version 0.2.7.27, a feature called 'Screen Time' is supported.
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.
-
Configure the
settings.ini
file as follows:[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 atapp/assets/img/_captured
. -
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 withbinary_
. -
Run the service in
User Interactive
mode. Execute thestartInteractiveService.bat
file. -
Through the
onServiceScreenTime()
event, you can receive the name of the matched template (image fragment) and the coordinates where it was matched. You can find an example of usage indefaultService.js
.
This document may contain outdated content. For the latest information, please contact us directly or refer to the webpage below.