- Introduced a comprehensive CSS file for styling the web interface, including variables for colors, layout styles, and responsive design adjustments. - Added a batch script to automate the process of stopping any existing instances of the web GUI and launching the new instance, along with opening the browser to the appropriate URL.
9 lines
480 B
Plaintext
9 lines
480 B
Plaintext
把“爱心/点赞”与“收藏/五角星”两个图标的小图片分别保存为:
|
|
- assets/like.png
|
|
- assets/fav.png
|
|
|
|
脚本会在养号动作时:
|
|
1) 按 config.json 里的坐标截取附近 180x180 的 ROI,保存到 pic/action_like_roi/latest.png、pic/action_fav_roi/latest.png
|
|
2) 用 OpenCV 模板匹配判断 ROI 是否包含对应图标;检测到才会点击
|
|
|
|
提示:模板图片尽量是纯图标(透明背景也可以),大小不要超过 ROI 太多。 |