# 微信 4.0 UI 自动化 Profile - 1920x1080 分辨率 # # 适用场景:微信窗口在 1920x1080 桌面环境下运行。 # 图像模板位于 templates/wechat_4.0/light/,几何兜底基于 1920x1080 比例计算。 # roi 为相对窗口的比例矩形,与分辨率无关,与 1435x876/1280x720 共用相同比例值。 # # 字段说明:参考 wechat_4.0_1435x876.yaml 顶部注释。 # 会话管理图标:左侧导航栏最上方(头像下方第一个)微信消息图标。 # 每次发送前点击它,强制回到会话列表首页,清除搜索覆盖层/弹窗/非会话页面。 session_manager_icon: by_image: session_manager_icon.png by_geom: relative_to: window x_ratio: 0.018 y_ratio: 0.109 x_offset: 0 y_offset: 0 roi: x_ratio: 0.0 y_ratio: 0.0 w_ratio: 0.10 h_ratio: 0.25 threshold: 0.80 require_image: false description: 左侧导航栏顶部微信消息/会话管理图标 search_box: by_image: search_box.png by_geom: relative_to: window # 与 1435x876 共用比例标定:搜索框中心位于左上角约 (0.080,0.052) x_ratio: 0.080 y_ratio: 0.052 x_offset: 0 y_offset: 0 roi: x_ratio: 0.0 y_ratio: 0.0 w_ratio: 0.30 h_ratio: 0.12 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 roi: x_ratio: 0.90 y_ratio: 0.85 w_ratio: 0.10 h_ratio: 0.15 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 roi: x_ratio: 0.55 y_ratio: 0.78 w_ratio: 0.45 h_ratio: 0.22 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 roi: x_ratio: 0.55 y_ratio: 0.78 w_ratio: 0.45 h_ratio: 0.22 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 roi: x_ratio: 0.0 y_ratio: 0.10 w_ratio: 0.30 h_ratio: 0.40 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 校验用,模板匹配不稳定,使用几何兜底;大区域无需 ROI 限制) # 好友申请通过 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 roi: x_ratio: 0.0 y_ratio: 0.05 w_ratio: 0.10 h_ratio: 0.30 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 roi: x_ratio: 0.05 y_ratio: 0.10 w_ratio: 0.25 h_ratio: 0.20 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 roi: x_ratio: 0.05 y_ratio: 0.15 w_ratio: 0.30 h_ratio: 0.30 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 roi: x_ratio: 0.40 y_ratio: 0.20 w_ratio: 0.40 h_ratio: 0.40 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 roi: x_ratio: 0.30 y_ratio: 0.65 w_ratio: 0.40 h_ratio: 0.30 threshold: 0.75 require_image: false description: '"通过朋友验证"弹窗绿色确定按钮(OpenCV 弹窗出现时实测 666/1435, 727/876)'