WechatOnCloud/bridge/woc_bridge/ui/profiles/wechat_4.0_1280x720.yaml
Kris 31953eedf4 feat: 新增好友申请自动通过功能
- 新增好友申请XML解析器,支持解析微信4.x Linux的fmessage系统消息
- 新增好友申请自动通过规则引擎,支持黑白名单、关键词、场景过滤
- 新增xdotool驱动的好友申请UI自动化流程
- 新增后台好友申请监听器,支持增量轮询与状态统计
- 新增配套API接口,支持查询申请列表、手动/自动通过、配置管理
- 新增多分辨率UI定位配置,适配1280x720和1920x1080分辨率
- 新增配置项支持自动通过功能的开关与规则配置
2026-07-16 13:03:58 +08:00

127 lines
2.8 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 微信 4.0 UI 自动化 Profile - 1280x720 分辨率
#
# 适用场景:微信窗口在 1280x720 桌面环境下运行VNC 默认分辨率)。
# 几何兜底按 1280x720 比例计算,与 1920x1080 相同 ratio
# offset 按 2/3 缩放1280/1920 = 720/1080 = 2/3
# 图像模板与 1920x1080 共用(多尺度匹配自适应)。
#
# 字段说明:参考 wechat_4.0_1920x1080.yaml 顶部注释。
search_box:
by_image: search_box.png
by_geom:
relative_to: window
x_ratio: 0.08
y_ratio: 0.05
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_bottom_right
x_ratio: 1.0
y_ratio: 1.0
# 1920x1080 的 -60/-30 按 2/3 缩放为 -40/-20
x_offset: -40
y_offset: -20
threshold: 0.80
require_image: false
description: 右下角发送按钮
input_box:
by_image: input_box.png
by_geom:
relative_to: window
x_ratio: 0.65
y_ratio: 0.93
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.65
y_ratio: 0.93
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.08
y_ratio: 0.11
x_offset: 0
y_offset: 0
threshold: 0.80
require_image: false
description: 搜索结果第一项
main_view:
by_image: main_view.png
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_geom:
relative_to: window
x_ratio: 0.04
y_ratio: 0.15
x_offset: 0
y_offset: 0
threshold: 0.80
require_image: false
description: 左侧导航栏通讯录图标
new_friend_entry:
by_geom:
relative_to: window
x_ratio: 0.04
y_ratio: 0.22
x_offset: 0
y_offset: 0
threshold: 0.80
require_image: false
description: 通讯录页"新的朋友"入口
verify_button:
by_geom:
relative_to: window_bottom_right
x_ratio: 1.0
y_ratio: 0.30
x_offset: -53
y_offset: 0
threshold: 0.75
require_image: false
description: 好友申请项"前往验证"按钮
confirm_button:
by_geom:
relative_to: window_bottom_right
x_ratio: 0.5
y_ratio: 1.0
x_offset: 0
y_offset: -40
threshold: 0.75
require_image: false
description: "通过朋友验证"弹窗确定按钮