89 lines
3.0 KiB
JSON
89 lines
3.0 KiB
JSON
{
|
||
"script_id": "yibao_video",
|
||
"label": "Home → 应用宝 → 赚钱 → 看视频赚积分 兑好礼(10 轮)",
|
||
"target_text": "应用宝",
|
||
"click_offset_y_ratio": -0.06,
|
||
"steps": [
|
||
{"kind": "home", "label": "点击云手机 Home 按钮"},
|
||
{"kind": "ocr_click", "text": "应用宝", "offset_y_ratio": -0.06, "label": "打开“应用宝”"},
|
||
{"kind": "ocr_click", "text": "赚钱", "label": "点击“赚钱”"},
|
||
{"kind": "scroll_ocr_click", "text": "全观看", "anchor": "兑好礼", "label": "查找“看视频赚积分 兑好礼”旁的“全观看”"},
|
||
{
|
||
"kind": "await_click",
|
||
"text": "立即体验",
|
||
"alt_texts": ["立即下载", "了解详情", "查看详情", "下载应用"],
|
||
"confirm": "看15秒",
|
||
"label": "等待提示语并点击“立即体验/立即下载/了解详情/查看详情/下载应用”",
|
||
"await_ms": 10000,
|
||
"max_scans": 10
|
||
},
|
||
{
|
||
"kind": "cond_ratio_click",
|
||
"confirm": "恭喜已获得",
|
||
"absent": "继续浏览",
|
||
"x_ratio": 0.172,
|
||
"y_ratio": 0.098,
|
||
"label": "等待倒计时结束后点击标题栏关闭按钮(X)",
|
||
"max_scans": 25
|
||
},
|
||
{
|
||
"kind": "cond_ratio_click",
|
||
"confirm": "应用版本",
|
||
"x_ratio": 0.067,
|
||
"y_ratio": 0.083,
|
||
"label": "若倒计时后跳到下载详情页,点击左上角关闭按钮(X)",
|
||
"max_scans": 3
|
||
},
|
||
{
|
||
"kind": "cond_ocr_click",
|
||
"text": "立即下载",
|
||
"confirm": "下载并打开浏览",
|
||
"label": "若出现“下载并打开浏览”,点击“立即下载”",
|
||
"max_scans": 4,
|
||
"skip_to": 14
|
||
},
|
||
{
|
||
"kind": "cond_ocr_click",
|
||
"text": "立即下载",
|
||
"confirm": "已下载",
|
||
"pick_top": true,
|
||
"label": "等待下载进度后点击第一个“立即下载”",
|
||
"max_scans": 15
|
||
},
|
||
{
|
||
"kind": "cond_ocr_click",
|
||
"text": "下一步",
|
||
"confirm": "软件安装",
|
||
"label": "等待“软件安装”界面并点击“下一步”",
|
||
"max_scans": 15
|
||
},
|
||
{
|
||
"kind": "cond_ocr_click",
|
||
"text": "打开",
|
||
"confirm": "打开",
|
||
"label": "回到下载界面点击“打开”",
|
||
"max_scans": 10
|
||
},
|
||
{"kind": "delay_home", "delay_ms": 20000, "label": "等待 20 秒后返回桌面"},
|
||
{"kind": "ocr_click", "text": "应用宝", "offset_y_ratio": -0.06, "label": "回到桌面后打开“应用宝”"},
|
||
{
|
||
"kind": "delay_click",
|
||
"delay_ms": 2000,
|
||
"x_ratio": 0.172,
|
||
"y_ratio": 0.098,
|
||
"label": "点击 (0.172, 0.108) 按钮返回广告页"
|
||
},
|
||
{
|
||
"kind": "cond_ratio_click",
|
||
"confirm": "看15秒",
|
||
"alt_confirms": ["恭喜已获得"],
|
||
"absent": "应用版本",
|
||
"x_ratio": 0.924,
|
||
"y_ratio": 0.111,
|
||
"label": "点击广告页右上角关闭按钮(X)返回任务列表",
|
||
"max_scans": 8
|
||
},
|
||
{"kind": "loop", "label": "循环观看下一集(共 10 轮)", "loop_to": 3, "loop_times": 10}
|
||
]
|
||
}
|