- 新增登录状态守卫后台任务 - 新增好友申请自动通过规则引擎 - 新增多分辨率UI配置与模板资源 - 新增消息拉取复合游标支持 - 优化发送队列与UI自动化逻辑 - 新增批量发送日志与错误处理 - 优化Docker镜像构建与ptrace初始化 - 新增联系人名称缓存预热
145 lines
3.5 KiB
YAML
145 lines
3.5 KiB
YAML
# 微信 4.0 UI 自动化 Profile - 1920x1080 分辨率
|
||
#
|
||
# 适用场景:微信窗口在 1920x1080 桌面环境下运行。
|
||
# 图像模板位于 templates/wechat_4.0/light/,几何兜底基于 1920x1080 比例计算。
|
||
#
|
||
# 字段说明:
|
||
# by_image: 模板文件名(相对 templates/wechat_4.0/light/)
|
||
# by_geom: 几何兜底规格(图像匹配失败或熔断时使用)
|
||
# relative_to: 语义占位(window / window_bottom_right)
|
||
# x_ratio / y_ratio: 相对窗口宽高的比例位置
|
||
# x_offset / y_offset: 绝对像素偏移(含正负号)
|
||
# threshold: 图像匹配置信度阈值
|
||
# require_image: true 时图像失败拒绝执行(高风险元素)
|
||
# description: 元素描述
|
||
|
||
search_box:
|
||
by_image: search_box.png
|
||
by_geom:
|
||
relative_to: window
|
||
x_ratio: 0.092
|
||
y_ratio: 0.095
|
||
x_offset: 0
|
||
y_offset: 0
|
||
threshold: 0.80
|
||
require_image: false
|
||
description: 左侧顶部搜索框
|
||
|
||
send_button:
|
||
by_image: send_button.png
|
||
by_geom:
|
||
relative_to: window
|
||
x_ratio: 0.972
|
||
y_ratio: 0.929
|
||
x_offset: 0
|
||
y_offset: 0
|
||
threshold: 0.80
|
||
require_image: false
|
||
description: 右下角发送按钮
|
||
|
||
input_box:
|
||
by_image: input_box.png
|
||
by_geom:
|
||
relative_to: window
|
||
x_ratio: 0.743
|
||
y_ratio: 0.914
|
||
x_offset: 0
|
||
y_offset: 0
|
||
threshold: 0.80
|
||
require_image: false
|
||
description: 聊天输入框
|
||
|
||
input_box_empty:
|
||
by_image: input_box_empty.png
|
||
by_geom:
|
||
relative_to: window
|
||
x_ratio: 0.743
|
||
y_ratio: 0.914
|
||
x_offset: 0
|
||
y_offset: 0
|
||
threshold: 0.80
|
||
require_image: false
|
||
description: 空输入框灰色提示态(发送成功后校验用)
|
||
|
||
search_result_first:
|
||
by_image: search_result_first.png
|
||
by_geom:
|
||
relative_to: window
|
||
x_ratio: 0.078
|
||
y_ratio: 0.174
|
||
x_offset: 0
|
||
y_offset: 0
|
||
threshold: 0.80
|
||
require_image: false
|
||
description: 搜索结果第一项
|
||
|
||
main_view:
|
||
by_geom:
|
||
relative_to: window
|
||
x_ratio: 0.65
|
||
y_ratio: 0.50
|
||
x_offset: 0
|
||
y_offset: 0
|
||
threshold: 0.75
|
||
require_image: false
|
||
description: 主聊天视图(post_verify 校验用,模板匹配不稳定,使用几何兜底)
|
||
|
||
# 好友申请通过 UI 元素定位(experimental,坐标为估算值需实测校准)
|
||
contact_icon:
|
||
by_image: contact_icon.png
|
||
by_geom:
|
||
relative_to: window
|
||
x_ratio: 0.04
|
||
y_ratio: 0.171
|
||
x_offset: 0
|
||
y_offset: 0
|
||
threshold: 0.80
|
||
require_image: false
|
||
description: 左侧导航栏通讯录图标
|
||
|
||
new_friend_entry:
|
||
by_image: new_friend_entry.png
|
||
by_geom:
|
||
relative_to: window
|
||
x_ratio: 0.125
|
||
y_ratio: 0.138
|
||
x_offset: 0
|
||
y_offset: 0
|
||
threshold: 0.80
|
||
require_image: false
|
||
description: 通讯录页"新的朋友"入口
|
||
|
||
friend_request_item:
|
||
by_geom:
|
||
relative_to: window
|
||
x_ratio: 0.125
|
||
y_ratio: 0.178
|
||
x_offset: 0
|
||
y_offset: 0
|
||
threshold: 0.75
|
||
require_image: false
|
||
description: '"新的朋友"列表第一条申请项(模板匹配不稳定,使用几何兜底)'
|
||
|
||
verify_button:
|
||
by_image: verify_button.png
|
||
by_geom:
|
||
relative_to: window
|
||
x_ratio: 0.593
|
||
y_ratio: 0.394
|
||
x_offset: 0
|
||
y_offset: 0
|
||
threshold: 0.75
|
||
require_image: false
|
||
description: 好友详情页"前往验证"按钮(OpenCV 实测标定)
|
||
|
||
confirm_button:
|
||
by_geom:
|
||
relative_to: window
|
||
x_ratio: 0.464
|
||
y_ratio: 0.830
|
||
x_offset: 0
|
||
y_offset: 0
|
||
threshold: 0.75
|
||
require_image: false
|
||
description: '"通过朋友验证"弹窗绿色确定按钮(OpenCV 弹窗出现时实测 666/1435, 727/876)'
|