82 lines
1.9 KiB
YAML
82 lines
1.9 KiB
YAML
|
|
# 微信 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 校验用,阈值略低因区域大)
|