diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index 283bfd7..da61728 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -78,7 +78,7 @@ jobs: - uses: actions/upload-artifact@v3 with: - name: MaaXXX-win-${{ matrix.arch }} + name: MWA-win-${{ matrix.arch }} path: "install" ubuntu: @@ -110,7 +110,7 @@ jobs: - uses: actions/upload-artifact@v3 with: - name: MaaXXX-linux-${{ matrix.arch }} + name: MWA-linux-${{ matrix.arch }} path: "install" macos: @@ -142,7 +142,7 @@ jobs: - uses: actions/upload-artifact@v3 with: - name: MaaXXX-macos-${{ matrix.arch }} + name: MWA-macos-${{ matrix.arch }} path: "install" release: diff --git a/assets/interface.json b/assets/interface.json index bd481ae..356ddc6 100644 --- a/assets/interface.json +++ b/assets/interface.json @@ -3,73 +3,306 @@ { "name": "安卓端", "type": "Adb" - }, - { - "name": "桌面端", - "type": "Win32", - "win32": { - "method": "Search", - "class_name": ".*", - "window_name": "Visual Studio" - } } ], "resource": [ - { - "name": "官服", - "path": [ - "{PROJECT_DIR}/resource/base" - ] - }, { "name": "B 服", "path": [ - "{PROJECT_DIR}/resource/base", - "{PROJECT_DIR}/resource/bilibili" + "{PROJECT_DIR}/resource/base" ] } ], "task": [ { - "name": "普通任务", - "entry": "MyTask1" + "name": "启动", + "entry": "StartUp" + }, + { + "name": "器者征集", + "entry": "Collect_operators" + }, + { + "name": "派遣公司", + "entry": "pqgs" + }, + { + "name": "每日免费礼包", + "entry": "business_kiosk" }, { - "name": "选项任务", - "entry": "MyTask2", + "name": "易物所", + "entry": "Barter_random" + }, + { + "name": "在主界面喝一瓶2天内过期的水(需要喝水请选择,无需则无视,注意!目前仅支持还剩两天就过期的水)", + "entry": "drink_a_2day_water" + }, + { + "name": "演训", + "entry": "kaishi", "option": [ - "任务选项1" + "选择关卡", + "打哪个", + "打几次" ] }, { - "name": "参数任务", - "entry": "MyTask3", + "name": "资源", + "entry": "resource_all", "option": [ - "任务选项1" - ], - "param": {} + "选择关卡", + "打哪个", + "打几次" + ] + }, + { + "name": "领取日常(包括游历)", + "entry": "task1" + }, + { + "name": "邮箱", + "entry": "Mail" } ], "option": { - "任务选项1": { + "选择关卡": { "cases": [ { - "name": "文本1", + "name": "冬谷币(演训用)", + "param": { + "StartTraining": { + "next": "Cash" + } + } + }, + { + "name": "教材(演训用)", + "param": { + "StartTraining": { + "next": "Experience" + } + } + }, + { + "name": "装备(演训用)", + "param": { + "StartTraining": { + "next": "Weapon" + } + } + }, + { + "name": "宿卫(演训用)", + "param": { + "StartTraining": { + "next": "Defender" + } + } + }, + { + "name": "构术(演训用)", + "param": { + "StartTraining": { + "next": "Caster" + } + } + }, + { + "name": "远击(演训用)", + "param": { + "StartTraining": { + "next": "Ranger" + } + } + }, + { + "name": "轻锐(演训用)", + "param": { + "StartTraining": { + "next": "LightMelee" + } + } + }, + { + "name": "战略(演训用)", + "param": { + "StartTraining": { + "next": "Tactical" + } + } + }, + { + "name": "第一章(资源用)", + "param": { + "resource_all": { + "next": "resource_one" + } + } + }, + { + "name": "第二章(资源用)", + "param": { + "resource_all": { + "next": "resource_two" + } + } + }, + { + "name": "第三章(资源用)", "param": { - "OcrTask": { - "text": "文本1" + "resource_all": { + "next": "resource_three" } } }, { - "name": "文本2", + "name": "第四章(资源用)", "param": { - "OcrTask": { - "text": "文本2" + "resource_all": { + "next": "resource_four" + } + } + }, + { + "name": "第五章(资源用)", + "param": { + "resource_all": { + "next": "resource_five" + } + } + } + ] + }, + "打哪个":{ + "cases":[ + { + "name":"第一关(子)(演训用)", + "param":{ + "xuanze":{ + "next":"SelectStage01" + } + } + }, + { + "name":"第二关(丑)(演训用)", + "param":{ + "xuanze":{ + "next":"SelectStage02" + } + } + }, + { + "name":"第三关(寅)(演训用)", + "param":{ + "xuanze":{ + "next":"SelectStage03" + } + } + }, + { + "name":"第四关(卯)(演训用)", + "param":{ + "xuanze":{ + "next":"SelectStage04" + } + } + }, + { + "name":"第五关(辰)(演训用)", + "param":{ + "xuanze":{ + "next":"SelectStage05" + } + } + }, + { + "name":"第一关(壹)(资源用)", + "param":{ + "resource":{ + "next":"ancient_both_sea_cantonese_often1" + } + } + }, + { + "name":"第二关(贰)(资源用)", + "param":{ + "resource":{ + "next":"ancient_both_sea_cantonese_often2" + } + } + }, + { + "name":"第三关(叁)(资源用)", + "param":{ + "resource":{ + "next":"ancient_both_sea_cantonese_often3" + } + } + }, + { + "name":"第四关(肆)(资源用)", + "param":{ + "resource":{ + "next":"ancient_both_sea_cantonese_often4" + } + } + }, + { + "name":"第五关(伍)(资源用)", + "param":{ + "resource":{ + "next":"ancient_both_sea_cantonese_often5" + } + } + } + ] + }, + "打几次":{ + "cases":[ + { + "name":"打一次(速通没解锁专用)", + "param":{ + "fast":{ + "next":"Start1" + } + } + }, + { + "name":"打一次(速通解锁专用)", + "param":{ + "fast":{ + "next":"Speedrun1x" + } + } + }, + { + "name":"打两次(速通解锁专用)", + "param":{ + "fast":{ + "next":"Speedrun2x" + } + } + }, + { + "name":"打四次(速通解锁专用)", + "param":{ + "fast":{ + "next":"Speedrun4x" + } + } + }, + { + "name":"打十次(速通解锁专用)", + "param":{ + "fast":{ + "next":"Speedrun10x" } } } ] } - } -} + }, + + "version": "v0.0.1" +} \ No newline at end of file diff --git a/assets/resource/base/image/.gitkeep b/assets/resource/base/image/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/assets/resource/base/image/Collect/02.png b/assets/resource/base/image/Collect/02.png new file mode 100644 index 0000000..cf50e56 Binary files /dev/null and b/assets/resource/base/image/Collect/02.png differ diff --git a/assets/resource/base/image/Collect/03.png b/assets/resource/base/image/Collect/03.png new file mode 100644 index 0000000..daa7504 Binary files /dev/null and b/assets/resource/base/image/Collect/03.png differ diff --git a/assets/resource/base/image/Collect/04.png b/assets/resource/base/image/Collect/04.png new file mode 100644 index 0000000..9236dba Binary files /dev/null and b/assets/resource/base/image/Collect/04.png differ diff --git a/assets/resource/base/image/Collect/05.png b/assets/resource/base/image/Collect/05.png new file mode 100644 index 0000000..54c89cd Binary files /dev/null and b/assets/resource/base/image/Collect/05.png differ diff --git a/assets/resource/base/image/Collect/06.png b/assets/resource/base/image/Collect/06.png new file mode 100644 index 0000000..5819590 Binary files /dev/null and b/assets/resource/base/image/Collect/06.png differ diff --git a/assets/resource/base/image/Collect/collectoperators.png b/assets/resource/base/image/Collect/collectoperators.png new file mode 100644 index 0000000..cef1d8a Binary files /dev/null and b/assets/resource/base/image/Collect/collectoperators.png differ diff --git a/assets/resource/base/image/Company/craft.png b/assets/resource/base/image/Company/craft.png new file mode 100644 index 0000000..5e4e77c Binary files /dev/null and b/assets/resource/base/image/Company/craft.png differ diff --git a/assets/resource/base/image/Company/djkb.png b/assets/resource/base/image/Company/djkb.png new file mode 100644 index 0000000..0906f05 Binary files /dev/null and b/assets/resource/base/image/Company/djkb.png differ diff --git a/assets/resource/base/image/Company/dorm.png b/assets/resource/base/image/Company/dorm.png new file mode 100644 index 0000000..6ee297a Binary files /dev/null and b/assets/resource/base/image/Company/dorm.png differ diff --git a/assets/resource/base/image/Company/exhibition.png b/assets/resource/base/image/Company/exhibition.png new file mode 100644 index 0000000..a3db4a8 Binary files /dev/null and b/assets/resource/base/image/Company/exhibition.png differ diff --git a/assets/resource/base/image/Company/gain_favor.png b/assets/resource/base/image/Company/gain_favor.png new file mode 100644 index 0000000..63aa3f4 Binary files /dev/null and b/assets/resource/base/image/Company/gain_favor.png differ diff --git a/assets/resource/base/image/Company/gain_resource.png b/assets/resource/base/image/Company/gain_resource.png new file mode 100644 index 0000000..40c6ee9 Binary files /dev/null and b/assets/resource/base/image/Company/gain_resource.png differ diff --git a/assets/resource/base/image/Company/hqgy.png b/assets/resource/base/image/Company/hqgy.png new file mode 100644 index 0000000..63aa3f4 Binary files /dev/null and b/assets/resource/base/image/Company/hqgy.png differ diff --git a/assets/resource/base/image/Company/office.png b/assets/resource/base/image/Company/office.png new file mode 100644 index 0000000..378fb6d Binary files /dev/null and b/assets/resource/base/image/Company/office.png differ diff --git a/assets/resource/base/image/Company/pqgs.png b/assets/resource/base/image/Company/pqgs.png new file mode 100644 index 0000000..6cbcdfb Binary files /dev/null and b/assets/resource/base/image/Company/pqgs.png differ diff --git a/assets/resource/base/image/Company/pqgs2.png b/assets/resource/base/image/Company/pqgs2.png new file mode 100644 index 0000000..beef5b2 Binary files /dev/null and b/assets/resource/base/image/Company/pqgs2.png differ diff --git a/assets/resource/base/image/Company/quit.png b/assets/resource/base/image/Company/quit.png new file mode 100644 index 0000000..d51cd6a Binary files /dev/null and b/assets/resource/base/image/Company/quit.png differ diff --git a/assets/resource/base/image/Company/request_manufacture.png b/assets/resource/base/image/Company/request_manufacture.png new file mode 100644 index 0000000..7e282bb Binary files /dev/null and b/assets/resource/base/image/Company/request_manufacture.png differ diff --git a/assets/resource/base/image/Company/return.png b/assets/resource/base/image/Company/return.png new file mode 100644 index 0000000..d51cd6a Binary files /dev/null and b/assets/resource/base/image/Company/return.png differ diff --git a/assets/resource/base/image/Company/social_manual.png b/assets/resource/base/image/Company/social_manual.png new file mode 100644 index 0000000..ec17692 Binary files /dev/null and b/assets/resource/base/image/Company/social_manual.png differ diff --git a/assets/resource/base/image/Company/sqgydj.png b/assets/resource/base/image/Company/sqgydj.png new file mode 100644 index 0000000..a7d08c6 Binary files /dev/null and b/assets/resource/base/image/Company/sqgydj.png differ diff --git a/assets/resource/base/image/Company/sqzy.png b/assets/resource/base/image/Company/sqzy.png new file mode 100644 index 0000000..40c6ee9 Binary files /dev/null and b/assets/resource/base/image/Company/sqzy.png differ diff --git a/assets/resource/base/image/Company/tearoom.png b/assets/resource/base/image/Company/tearoom.png new file mode 100644 index 0000000..4cc76c2 Binary files /dev/null and b/assets/resource/base/image/Company/tearoom.png differ diff --git a/assets/resource/base/image/Company/weapon_purchase.png b/assets/resource/base/image/Company/weapon_purchase.png new file mode 100644 index 0000000..f6e322a Binary files /dev/null and b/assets/resource/base/image/Company/weapon_purchase.png differ diff --git a/assets/resource/base/image/Company/workshop.png b/assets/resource/base/image/Company/workshop.png new file mode 100644 index 0000000..57772f2 Binary files /dev/null and b/assets/resource/base/image/Company/workshop.png differ diff --git a/assets/resource/base/image/Company/zwzy.png b/assets/resource/base/image/Company/zwzy.png new file mode 100644 index 0000000..0acafa8 Binary files /dev/null and b/assets/resource/base/image/Company/zwzy.png differ diff --git a/assets/resource/base/image/Mail/gou.png b/assets/resource/base/image/Mail/gou.png new file mode 100644 index 0000000..cd09b1c Binary files /dev/null and b/assets/resource/base/image/Mail/gou.png differ diff --git a/assets/resource/base/image/Mainpage/110.png b/assets/resource/base/image/Mainpage/110.png new file mode 100644 index 0000000..daf0e28 Binary files /dev/null and b/assets/resource/base/image/Mainpage/110.png differ diff --git a/assets/resource/base/image/Mainpage/activity.png b/assets/resource/base/image/Mainpage/activity.png new file mode 100644 index 0000000..8afa6ea Binary files /dev/null and b/assets/resource/base/image/Mainpage/activity.png differ diff --git a/assets/resource/base/image/Mainpage/announcement.png b/assets/resource/base/image/Mainpage/announcement.png new file mode 100644 index 0000000..51084df Binary files /dev/null and b/assets/resource/base/image/Mainpage/announcement.png differ diff --git a/assets/resource/base/image/Mainpage/archive.png b/assets/resource/base/image/Mainpage/archive.png new file mode 100644 index 0000000..62a427f Binary files /dev/null and b/assets/resource/base/image/Mainpage/archive.png differ diff --git a/assets/resource/base/image/Mainpage/battlepass.png b/assets/resource/base/image/Mainpage/battlepass.png new file mode 100644 index 0000000..6615d43 Binary files /dev/null and b/assets/resource/base/image/Mainpage/battlepass.png differ diff --git a/assets/resource/base/image/Mainpage/collect.png b/assets/resource/base/image/Mainpage/collect.png new file mode 100644 index 0000000..cef1d8a Binary files /dev/null and b/assets/resource/base/image/Mainpage/collect.png differ diff --git a/assets/resource/base/image/Mainpage/company.png b/assets/resource/base/image/Mainpage/company.png new file mode 100644 index 0000000..6cbcdfb Binary files /dev/null and b/assets/resource/base/image/Mainpage/company.png differ diff --git a/assets/resource/base/image/Mainpage/exchange.png b/assets/resource/base/image/Mainpage/exchange.png new file mode 100644 index 0000000..2b93ea7 Binary files /dev/null and b/assets/resource/base/image/Mainpage/exchange.png differ diff --git a/assets/resource/base/image/Mainpage/execution.png b/assets/resource/base/image/Mainpage/execution.png new file mode 100644 index 0000000..a396ce4 Binary files /dev/null and b/assets/resource/base/image/Mainpage/execution.png differ diff --git a/assets/resource/base/image/Mainpage/mail.png b/assets/resource/base/image/Mainpage/mail.png new file mode 100644 index 0000000..eed7d3d Binary files /dev/null and b/assets/resource/base/image/Mainpage/mail.png differ diff --git a/assets/resource/base/image/Mainpage/mission.png b/assets/resource/base/image/Mainpage/mission.png new file mode 100644 index 0000000..c17f054 Binary files /dev/null and b/assets/resource/base/image/Mainpage/mission.png differ diff --git a/assets/resource/base/image/Mainpage/operator.png b/assets/resource/base/image/Mainpage/operator.png new file mode 100644 index 0000000..75f2ea0 Binary files /dev/null and b/assets/resource/base/image/Mainpage/operator.png differ diff --git a/assets/resource/base/image/Mainpage/quit.png b/assets/resource/base/image/Mainpage/quit.png new file mode 100644 index 0000000..d51cd6a Binary files /dev/null and b/assets/resource/base/image/Mainpage/quit.png differ diff --git a/assets/resource/base/image/Mainpage/shop.png b/assets/resource/base/image/Mainpage/shop.png new file mode 100644 index 0000000..88e35d6 Binary files /dev/null and b/assets/resource/base/image/Mainpage/shop.png differ diff --git a/assets/resource/base/image/Mainpage/stamina.png b/assets/resource/base/image/Mainpage/stamina.png new file mode 100644 index 0000000..6413634 Binary files /dev/null and b/assets/resource/base/image/Mainpage/stamina.png differ diff --git a/assets/resource/base/image/Mainpage/storage.png b/assets/resource/base/image/Mainpage/storage.png new file mode 100644 index 0000000..65250e1 Binary files /dev/null and b/assets/resource/base/image/Mainpage/storage.png differ diff --git a/assets/resource/base/image/Mainpage/training.png b/assets/resource/base/image/Mainpage/training.png new file mode 100644 index 0000000..c4ac7e8 Binary files /dev/null and b/assets/resource/base/image/Mainpage/training.png differ diff --git a/assets/resource/base/image/Shop/01.png b/assets/resource/base/image/Shop/01.png new file mode 100644 index 0000000..661cdae Binary files /dev/null and b/assets/resource/base/image/Shop/01.png differ diff --git a/assets/resource/base/image/Shop/02.png b/assets/resource/base/image/Shop/02.png new file mode 100644 index 0000000..9ad8f6b Binary files /dev/null and b/assets/resource/base/image/Shop/02.png differ diff --git a/assets/resource/base/image/Speedrun/10.png b/assets/resource/base/image/Speedrun/10.png new file mode 100644 index 0000000..3b8262c Binary files /dev/null and b/assets/resource/base/image/Speedrun/10.png differ diff --git a/assets/resource/base/image/Speedrun/11.png b/assets/resource/base/image/Speedrun/11.png new file mode 100644 index 0000000..dc641da Binary files /dev/null and b/assets/resource/base/image/Speedrun/11.png differ diff --git a/assets/resource/base/image/Speedrun/12.png b/assets/resource/base/image/Speedrun/12.png new file mode 100644 index 0000000..25d12e1 Binary files /dev/null and b/assets/resource/base/image/Speedrun/12.png differ diff --git a/assets/resource/base/image/Speedrun/13.png b/assets/resource/base/image/Speedrun/13.png new file mode 100644 index 0000000..b90d84e Binary files /dev/null and b/assets/resource/base/image/Speedrun/13.png differ diff --git a/assets/resource/base/image/Speedrun/14.png b/assets/resource/base/image/Speedrun/14.png new file mode 100644 index 0000000..52c726f Binary files /dev/null and b/assets/resource/base/image/Speedrun/14.png differ diff --git a/assets/resource/base/image/Speedrun/15.png b/assets/resource/base/image/Speedrun/15.png new file mode 100644 index 0000000..11a12ac Binary files /dev/null and b/assets/resource/base/image/Speedrun/15.png differ diff --git a/assets/resource/base/image/Startup/10.png b/assets/resource/base/image/Startup/10.png new file mode 100644 index 0000000..526111b Binary files /dev/null and b/assets/resource/base/image/Startup/10.png differ diff --git a/assets/resource/base/image/Startup/AccumulatedSignInExit.png b/assets/resource/base/image/Startup/AccumulatedSignInExit.png new file mode 100644 index 0000000..021fcde Binary files /dev/null and b/assets/resource/base/image/Startup/AccumulatedSignInExit.png differ diff --git a/assets/resource/base/image/Startup/announcement_outer.png b/assets/resource/base/image/Startup/announcement_outer.png new file mode 100644 index 0000000..39e6ca9 Binary files /dev/null and b/assets/resource/base/image/Startup/announcement_outer.png differ diff --git a/assets/resource/base/image/dst/122252_461_188_68_26__411_138_168_126.png b/assets/resource/base/image/dst/122252_461_188_68_26__411_138_168_126.png new file mode 100644 index 0000000..0f7493a Binary files /dev/null and b/assets/resource/base/image/dst/122252_461_188_68_26__411_138_168_126.png differ diff --git a/assets/resource/base/image/dst/225256_459_186_77_30__409_136_177_130.png b/assets/resource/base/image/dst/225256_459_186_77_30__409_136_177_130.png new file mode 100644 index 0000000..eab6e03 Binary files /dev/null and b/assets/resource/base/image/dst/225256_459_186_77_30__409_136_177_130.png differ diff --git a/assets/resource/base/image/dst/225313_459_290_76_29__409_240_176_129.png b/assets/resource/base/image/dst/225313_459_290_76_29__409_240_176_129.png new file mode 100644 index 0000000..b8f1922 Binary files /dev/null and b/assets/resource/base/image/dst/225313_459_290_76_29__409_240_176_129.png differ diff --git a/assets/resource/base/image/dst/2day.png b/assets/resource/base/image/dst/2day.png new file mode 100644 index 0000000..d320d01 Binary files /dev/null and b/assets/resource/base/image/dst/2day.png differ diff --git a/assets/resource/base/image/dst/fork.png b/assets/resource/base/image/dst/fork.png new file mode 100644 index 0000000..7631eae Binary files /dev/null and b/assets/resource/base/image/dst/fork.png differ diff --git a/assets/resource/base/image/receive_reward/01.png b/assets/resource/base/image/receive_reward/01.png new file mode 100644 index 0000000..1ee6bba Binary files /dev/null and b/assets/resource/base/image/receive_reward/01.png differ diff --git a/assets/resource/base/image/receive_reward/02.png b/assets/resource/base/image/receive_reward/02.png new file mode 100644 index 0000000..ac68c6d Binary files /dev/null and b/assets/resource/base/image/receive_reward/02.png differ diff --git a/assets/resource/base/image/resource/02.png b/assets/resource/base/image/resource/02.png new file mode 100644 index 0000000..60a0117 Binary files /dev/null and b/assets/resource/base/image/resource/02.png differ diff --git a/assets/resource/base/image/resource/03.png b/assets/resource/base/image/resource/03.png new file mode 100644 index 0000000..50f286a Binary files /dev/null and b/assets/resource/base/image/resource/03.png differ diff --git a/assets/resource/base/image/resource/04.png b/assets/resource/base/image/resource/04.png new file mode 100644 index 0000000..b7d49c0 Binary files /dev/null and b/assets/resource/base/image/resource/04.png differ diff --git a/assets/resource/base/image/resource/05.png b/assets/resource/base/image/resource/05.png new file mode 100644 index 0000000..46ace32 Binary files /dev/null and b/assets/resource/base/image/resource/05.png differ diff --git a/assets/resource/base/image/resource/06.png b/assets/resource/base/image/resource/06.png new file mode 100644 index 0000000..e2a13bb Binary files /dev/null and b/assets/resource/base/image/resource/06.png differ diff --git a/assets/resource/base/image/resource/07.png b/assets/resource/base/image/resource/07.png new file mode 100644 index 0000000..61ff6d5 Binary files /dev/null and b/assets/resource/base/image/resource/07.png differ diff --git a/assets/resource/base/pipeline/10receivemail.json b/assets/resource/base/pipeline/10receivemail.json new file mode 100644 index 0000000..21d5478 --- /dev/null +++ b/assets/resource/base/pipeline/10receivemail.json @@ -0,0 +1,23 @@ +{ + "Mail":{ + "next":[ + "EnterMail" + ] + }, + "EnterMail":{ + "recognition":"TemplateMatch", + "template":"Mainpage/mail.png", + "action":"Click", + "next":[ + "ReceiveMail" + ] + }, + "ReceiveMail":{ + "recognition":"OCR", + "expected":"全部", + "action":"Click", + "next":[ + "Quit" + ] + } +} \ No newline at end of file diff --git a/assets/resource/base/pipeline/1_startup.json b/assets/resource/base/pipeline/1_startup.json new file mode 100644 index 0000000..cd09222 --- /dev/null +++ b/assets/resource/base/pipeline/1_startup.json @@ -0,0 +1,89 @@ +{ + "StartUp": { + "next": [ + "Sub_StartWuhua", + "Sub_CloseAnnouncement", + "Sub_StartGame", + "Sub_AccumulatedSignIn", + "Sub_AccumulatedSignInExit", + "Sub_StartUp" + ] + }, + "Sub_StartUp": { + "next": [ + "StartUp" + ] + }, + "Sub_StartWuhua": { + "is_sub": true, + "action": "StartApp", + "package": "com.cipaishe.wuhua.bilibili/com.cipaishe.wuhua.bilibili.activity.ONESDKSplashActivity", + "post_wait_freezes":10000, + "next":[ + "update", + "Sub_CloseAnnouncement" + ] + }, + "update":{ + "recognition":"OCR", + "expected":"终端数据更新", + "roi":[ + 403, 249, 474, 111 + ], + "action":"Click", + "post_wait_freezes":7000, + "target":[ + 765, 430, 0, 0 + ], + "next":[ + ] + }, + "Sub_CloseAnnouncement":{ + "is_sub": true, + "recognition":"TemplateMatch", + "template": "Startup/announcement_outer.png", + "action": "Click", + "next":[ + "Sub_StartGame" + ] + }, + "Sub_StartGame":{ + "is_sub": true, + "recognition":"OCR", + "expected":"抵制不良游戏", + "action":"Click", + "next":[ + "Sub_AccumulatedSignIn" + ] + }, + "Sub_AccumulatedSignIn":{ + "is_sub": true, + "post_delay":10000, + "next":[ + "Sub_GetResource", + "Sub_AccumulatedSignInExit", + "stop" + ] + }, + "stop":{ + "action":"StopTask" + }, + "Sub_AccumulatedSignInExit":{ + "is_sub": true, + "recognition":"TemplateMatch", + "template":"Startup/AccumulatedSignInExit.png", + "action":"Click" + }, + "Sub_GetResource":{ + "is_sub": true, + "recognition":"OCR", + "expected":"获得物资", + "action":"Click", + "next":[ + "DoubleClick" + ] + }, + "DoubleClick":{ + "action":"Click" + } +} diff --git a/assets/resource/base/pipeline/2_collect_operators.json b/assets/resource/base/pipeline/2_collect_operators.json new file mode 100644 index 0000000..4077564 --- /dev/null +++ b/assets/resource/base/pipeline/2_collect_operators.json @@ -0,0 +1,154 @@ +{ + "Collect_operators": { + "next": [ + "Collecting", + "Sub_ReceiveOperators" + ] + }, + "Collecting":{ + "recognition":"OCR", + "expected":"器者征集", + "action":"Click", + "next":[ + "Sub_ReceiveOperators", + "ReceiveCollect" + ] + }, + "Sub_ReceiveOperators":{ + "recognition":"TemplateMatch", + "template":"Collect/02.png", + "action":"Click", + "next":[ + "ReceiveCollect" + ] + }, + "ReceiveCollect":{ + "recognition":"OCR", + "expected":"全部", + "action":"Click", + "next":[ + "changan", + "quit2" + ] + }, + "changan":{ + "recognition":"OCR", + "expected":"长按", + "action":"Swipe", + "begin":[ + 645, 635, 0, 0 + ], + "end":[ + 645, 635, 0, 0 + ], + "duration":3000, + "post_delay":3000, + "next":[ + "Skip" + ] + }, + "Skip":{ + "recognition":"TemplateMatch", + "template":"Collect/05.png", + "action":"Click", + "post_delay":3000, + "next":[ + "outcome" + ] + }, + "outcome":{ + "recognition":"OCR", + "expected":"征集结果", + "action":"Click", + "target":[ + 645, 625, 0, 0 + ], + "next":[ + "get" + ] + }, + "get":{ + "recognition":"OCR", + "expected":"获得物资", + "action":"Click", + "next":[ + "Collecting2", + "back" + ] + }, + "quit2":{ + "recognition":"OCR", + "expected":"当前没有已经完成的征集队列", + "next":[ + "back" + ] + }, + "back":{ + "action":"Click", + "target":[ + 330, 360, 0, 0 + ], + "next":[ + "Collecting2" + ] + }, + "Collecting2":{ + "recognition":"OCR", + "expected":"开始征集", + "action":"Click", + "next":[ + "jia" + ] + }, + "jia":{ + "recognition":"TemplateMatch", + "template":"Collect/03.png", + "action":"Click", + "target":[ + 770, 350, 0, 0 + ], + "next":[ + "jia2" + ] + }, + "jia2":{ + "action":"Click", + "target":[ + 770, 350, 0, 0 + ], + "next":[ + "jia3" + ] + }, + "jia3":{ + "action":"Click", + "target":[ + 770, 350, 0, 0 + ], + "next":[ + "jia4" + ] + }, + "jia4":{ + "action":"Click", + "target":[ + 770, 350, 0, 0 + ], + "next":[ + "gou" + ] + }, + "gou":{ + "recognition":"TemplateMatch", + "template":"Collect/04.png", + "action":"Click", + "next":[ + "Quit" + ] + }, + "Quit":{ + "recognition":"TemplateMatch", + "template":"Collect/06.png", + "action":"Click" + } +} diff --git a/assets/resource/base/pipeline/3_collectresource.json b/assets/resource/base/pipeline/3_collectresource.json new file mode 100644 index 0000000..37e845b --- /dev/null +++ b/assets/resource/base/pipeline/3_collectresource.json @@ -0,0 +1,57 @@ +{ + "pqgs": { + "recognition": "TemplateMatch", + "template": "Company/pqgs2.png", + "action": "Click", + "next": [ + "sqzy" + ] + }, + "sqzy": { + "recognition": "TemplateMatch", + "template": "Company/sqzy.png", + "action": "Click", + "next": [ + "djkb", + "zwzy" + ] + }, + "djkb": { + "recognition": "TemplateMatch", + "template": "Company/djkb.png", + "action": "Click", + "next": [ + "hqgy", + "quit" + ] + }, + "hqgy": { + "recognition": "FeatureMatch", + "template": "Company/hqgy.png", + "action": "Click", + "next": [ + "sqgydj" + ] + }, + "quit": { + "recognition": "TemplateMatch", + "template": "Company/quit.png", + "action": "Click", + "next": [] + }, + "sqgydj": { + "recognition": "TemplateMatch", + "template": "Company/sqgydj.png", + "action": "Click", + "next": [ + "quit" + ] + }, + "zwzy": { + "recognition": "TemplateMatch", + "template": "Company/zwzy.png", + "next": [ + "quit" + ] + } +} \ No newline at end of file diff --git a/assets/resource/base/pipeline/4_dailybonus.json b/assets/resource/base/pipeline/4_dailybonus.json new file mode 100644 index 0000000..d7bbf55 --- /dev/null +++ b/assets/resource/base/pipeline/4_dailybonus.json @@ -0,0 +1,64 @@ +{ + "business_kiosk":{ + "next":[ + "shangting", + "libao", + "richang", + "donggu", + "Quit" + ] + }, + "shangting":{ + "recognition":"OCR", + "expected":"商亭", + "action":"Click", + "next":[ + "libao" + ] + }, + "libao":{ + "recognition":"OCR", + "expected":"礼包", + "action":"Click", + "next":[ + "richang" + ] + }, + "richang":{ + "recognition":"OCR", + "expected":"日常", + "action":"Click", + "next":[ + "donggu" + ] + }, + "donggu":{ + "recognition":"OCR", + "expected":"每日", + "action":"Click", + "target":[ + 365, 665, 0, 0 + ], + "next":[ + "goumai" + ] + }, + "goumai":{ + "recognition":"OCR", + "expected":"购买", + "action":"Click", + "post_delay":2000, + "next":[ + "obtain1" + ] + }, + "obtain1":{ + "recognition":"OCR", + "expected":"获得物资", + "action":"Click", + "pre_wait_freezes":1000, + "next":[ + "Quit" + ] + } +} \ No newline at end of file diff --git a/assets/resource/base/pipeline/5_Barter.json b/assets/resource/base/pipeline/5_Barter.json new file mode 100644 index 0000000..f554493 --- /dev/null +++ b/assets/resource/base/pipeline/5_Barter.json @@ -0,0 +1,125 @@ +{ + "Barter_random":{ + "next":[ + "Barter", + "random_one", + "random_tow", + "random_three", + "random_four", + "Quit" + ] + }, + "Barter":{ + "recognition":"OCR", + "expected":"易物所", + "action":"Click", + "post_delay":2000, + "next":[ + "random_one", + "random_tow", + "random_three", + "random_four", + "Quit" + ] + }, + "random_one":{ + "recognition":"TemplateMatch", + "template":"Shop/01.png", + "roi":[ + 295, 328, 53, 40 + ], + "action":"Click", + "post_delay":1000, + "next":[ + "max", + "Quit" + ] + }, + "random_tow":{ + "recognition":"TemplateMatch", + "template":"Shop/01.png", + "roi":[ + 523, 328, 51, 42 + ], + "action":"Click", + "post_delay":1000, + "next":[ + "max", + "Quit" + ] + }, + "random_three":{ + "recognition":"TemplateMatch", + "template":"Shop/01.png", + "roi":[ + 756, 328, 46, 42 + ], + "action":"Click", + "post_delay":1000, + "next":[ + "max", + "Quit" + ] + }, + "random_four":{ + "recognition":"TemplateMatch", + "template":"Shop/01.png", + "roi":[ + 981, 328, 62, 41 + ], + "action":"Click", + "post_delay":1000, + "next":[ + "max", + "Quit" + ] + }, + "max":{ + "recognition":"OCR", + "expected":"最大", + "action":"Click", + "next":[ + "purchase", + "Quit" + ] + }, + "purchase":{ + "recognition":"TemplateMatch", + "template":"Shop/02.png", + "roi":[ + 570, 447, 54, 51 + ], + "action":"Click", + "post_delay":2000, + "next":[ + "no_money", + "obtain", + "Quit" + ] + }, + "no_money":{ + "recognition":"OCR", + "expected":"没有足够", + "action":"Click", + "post_delay":1000, + "target":[ + 720, 120, 0, 0 + ], + "next":[ + "Quit" + ] + }, + "obtain":{ + "recognition":"OCR", + "expected":"获得物资", + "action":"Click", + "pre_wait_freezes":2000, + "next":[ + "random_one", + "random_tow", + "random_three", + "random_four", + "Quit" + ] + } +} \ No newline at end of file diff --git a/assets/resource/base/pipeline/6_(02)water.json b/assets/resource/base/pipeline/6_(02)water.json new file mode 100644 index 0000000..a57ab07 --- /dev/null +++ b/assets/resource/base/pipeline/6_(02)water.json @@ -0,0 +1,55 @@ +{ + "drink":{ + "next":[ + "huipo", + "water" + ] + }, + "huipo":{ + "recognition":"OCR", + "expected":"剩余购买次数", + "roi":[ + 280, 485, 218, 52 + ], + "action":"Click", + "target":[ + 615, 75, 0, 0 + ], + "next":"quit_fork" + }, + "water":{ + "recognition":"OCR", + "expected":"药剂", + "roi":[ + 244, 132, 130, 36 + ], + "action":"Click", + "next":[ + "sub_2daywater", + "quit_fork" + ] + }, + "sub_2daywater":{ + "recognition":"TemplateMatch", + "template":"dst/2day.png", + "threshold":0.85, + "action":"Click", + "target_offset":[ + -10, 35, 0, 0 + ], + "next":[ + "sub_drink", + "quit_fork" + ] + }, + "sub_drink":{ + "recognition":"TemplateMatch", + "template":"Collect/04.png", + "action":"Click" + }, + "quit_fork":{ + "recognition":"TemplateMatch", + "template":"dst/fork.png", + "action":"Click" + } +} \ No newline at end of file diff --git a/assets/resource/base/pipeline/6_drink_a_2day_water.json b/assets/resource/base/pipeline/6_drink_a_2day_water.json new file mode 100644 index 0000000..c178206 --- /dev/null +++ b/assets/resource/base/pipeline/6_drink_a_2day_water.json @@ -0,0 +1,13 @@ +{ + "drink_a_2day_water":{ + "recognition":"TemplateMatch", + "template":"Mainpage/stamina.png", + "roi":[ + 1188, 259, 67, 66 + ], + "action":"Click", + "next":[ + "drink" + ] + } +} \ No newline at end of file diff --git a/assets/resource/base/pipeline/7_(02)level.json b/assets/resource/base/pipeline/7_(02)level.json new file mode 100644 index 0000000..a1cd96e --- /dev/null +++ b/assets/resource/base/pipeline/7_(02)level.json @@ -0,0 +1,67 @@ +{ + "xuanze":{ + "next":[ + "SelectStage01", + "SelectStage02", + "SelectStage03", + "SelectStage04", + "SelectStage05", + "fast" + ] + }, + "SelectStage01":{ + "recognition":"OCR", + "expected":"子", + "action":"Click", + "target_offset":[ + 0, -40, 0, 0 + ], + "next":[ + "fast" + ] + }, + "SelectStage02":{ + "recognition":"OCR", + "expected":"丑", + "action":"Click", + "target_offset":[ + 0, -50, 0, 0 + ], + "next":[ + "fast" + ] + }, + "SelectStage03":{ + "recognition":"OCR", + "expected":"寅", + "action":"Click", + "target_offset":[ + 0, -50, 0, 0 + ], + "next":[ + "fast" + ] + }, + "SelectStage04":{ + "recognition":"OCR", + "expected":"卯", + "action":"Click", + "target_offset":[ + 0, -50, 0, 0 + ], + "next":[ + "fast" + ] + }, + "SelectStage05":{ + "recognition":"OCR", + "expected":"辰", + "action":"Click", + "target_offset":[ + 0, -50, 0, 0 + ], + "next":[ + "fast" + ] + } +} \ No newline at end of file diff --git a/assets/resource/base/pipeline/7_(03)allin.json b/assets/resource/base/pipeline/7_(03)allin.json new file mode 100644 index 0000000..68796e6 --- /dev/null +++ b/assets/resource/base/pipeline/7_(03)allin.json @@ -0,0 +1,255 @@ +{ + "frequency":{ + "next":[ + "fast", + "Start1", + "Speedrun1x", + "Speedrun2x", + "Speedrun4x", + "Speedrun10x" + ] + }, + "fast":{ + "recognition":"OCR", + "expected":"速通", + "action":"Click", + "target":[ + 1030, 660, 0, 0 + ], + "pre_delay":2000, + "post_delay":2000, + "next":[ + "Speedrun1x", + "Speedrun2x", + "Speedrun4x", + "Speedrun10x", + "Start1" + ] + }, + "Speedrun1x":{ + "recognition":"TemplateMatch", + "template":"Speedrun/10.png", + "action":"Click", + "target":[ + 855, 420, 0, 0 + ], + "next":[ + "CompleteSpeedrun" + ] + }, + "Speedrun2x":{ + "next":[ + "AddSpeedrunTime2", + "requires_more", + "Sub_AddSpeedrunTime2", + "CompleteSpeedrun" + ] + }, + + "Speedrun4x": { + "next": [ + "AddSpeedrunTime4", + "requires_more", + "Sub_AddSpeedrunTime4", + "CompleteSpeedrun" + ] + }, + "Speedrun10x": { + "next": [ + "AddSpeedrunTime10", + "requires_more", + "Sub_AddSpeedrunTime10", + "CompleteSpeedrun" + ] + }, + "Sub_AddSpeedrunTime2":{ + "is_sub":true, + "recognition":"TemplateMatch", + "template":"Speedrun/11.png", + "action":"Click", + "target":[ + 905, 340, 0, 0 + ], + "next":[ + "Speedrun2x" + ] + }, + "Sub_AddSpeedrunTime4":{ + "is_sub":true, + "recognition":"TemplateMatch", + "template":"Speedrun/11.png", + "action":"Click", + "target":[ + 905, 340, 0, 0 + ], + "next":[ + "Speedrun4x" + ] + }, + "Sub_AddSpeedrunTime10":{ + "is_sub":true, + "recognition":"TemplateMatch", + "template":"Speedrun/11.png", + "action":"Click", + "target":[ + 905, 340, 0, 0 + ], + "next":[ + "Speedrun10x" + ] + }, + "AddSpeedrunTime2":{ + "recognition":"TemplateMatch", + "template":"Speedrun/13.png", + "roi":[ + 744, 324, 35, 34 + ], + "next":[ + "CompleteSpeedrun" + ] + }, + "AddSpeedrunTime4":{ + "recognition":"TemplateMatch", + "template":"Speedrun/14.png", + "roi":[ + 746, 323, 33, 32 + ], + "next":[ + "CompleteSpeedrun" + ] + }, + "AddSpeedrunTime10":{ + "recognition":"TemplateMatch", + "template":"Speedrun/15.png", + "roi":[ + 741, 325, 42, 33 + ], + "next":[ + "CompleteSpeedrun" + ] + }, + "requires_more":{ + "recognition":"OCR", + "expected":"需要更多体力", + "next":[ + "CompleteSpeedrun" + ] + }, + "CompleteSpeedrun":{ + "recognition":"TemplateMatch", + "template":"Speedrun/12.png", + "action":"Click", + "next":[ + "goodwill", + "settlement" + ] + }, + "goodwill":{ + "recognition":"OCR", + "expected":"好感已满", + "roi":[ + 485, 280, 324, 82 + ], + "action":"Click", + "target":[ + 770, 430, 510, 290 + ], + "next":[ + "settlement", + "CompleteSpeedrun", + "Start1" + ] + }, + "settlement":{ + "recognition":"OCR", + "expected":"结算完成", + "action":"Click", + "pre_wait_freezes":2000, + "target":[ + 1115, 635, 0, 0 + ], + "next":[ + "exit" + ] + }, + "exit":{ + "recognition":"TemplateMatch", + "template":"Collect/06.png", + "action":"Click", + "next":[ + "home" + ] + }, + "home":{ + "recognition":"TemplateMatch", + "template":"Startup/10.png", + "action":"Click", + "next":[ + "stop" + ] + }, + "Start1":{ + "recognition":"OCR", + "expected":"开始", + "action":"Click", + "post_wait_freezes":5000, + "next":[ + "goodwill", + "Start2" + ] + }, + "Start2":{ + "recognition":"OCR", + "expected":"开始", + "action":"Click", + "post_wait_freezes":5000, + "next":[ + "substitute_shifts", + "await", + "situation" + ] + }, + "substitute_shifts":{ + "recognition":"OCR", + "expected":"代班中", + "inverse":true, + "action":"Click", + "post_wait_freezes":5000, + "target":[ + 1236, 159, 0, 0 + ], + "next":[ + "await" + ] + }, + "await":{ + "recognition":"OCR", + "expected":"完美评价", + "action":"Click", + "post_wait_freezes":3000, + "target":[ + 770, 425, 0, 0 + ], + "next":[ + "hit", + "situation" + ] + }, + "hit":{ + "action":"Click", + "target":[ + 695, 75, 0, 0 + ], + "next":[ + "situation" + ] + }, + "situation":{ + "recognition":"OCR", + "expected":"确定", + "action":"Click", + "next":[ + "exit" + ] + } +} \ No newline at end of file diff --git a/assets/resource/base/pipeline/7_training.json b/assets/resource/base/pipeline/7_training.json new file mode 100644 index 0000000..0bfe431 --- /dev/null +++ b/assets/resource/base/pipeline/7_training.json @@ -0,0 +1,140 @@ +{ + "kaishi":{ + "next":[ + "EnterTraining", + "StartTraining" + ] + }, + "EnterTraining":{ + "recognition":"TemplateMatch", + "template":"Mainpage/training.png", + "action":"Click", + "post_delay":3000, + "next": [ + "StartTraining" + ] + }, + "StartTraining": { + "recognition":"OCR", + "expected":"试炼场", + "action":"Click", + "target":[ + 260, 295, 0, 0 + ], + "post_delay":2000, + "next":[ + "Cash", + "Experience", + "Weapon", + "Defender", + "Caster", + "Ranger", + "LightMelee", + "Tactical" + ] + }, + "Cash":{ + "recognition":"OCR", + "expected":"冬谷币", + "action":"Click", + "next":[ + "xuanze" + ] + }, + "Experience":{ + "recognition":"OCR", + "expected":"教材", + "action":"Click", + "next":[ + "xuanze" + ] + }, + "Weapon":{ + "recognition":"OCR", + "expected":"装备", + "action":"Click", + "next":[ + "xuanze" + ] + }, + "Defender":{ + "recognition":"TemplateMatch", + "template":"Mainpage/110.png", + "action":"Click", + "next":[ + "Defender1" + ] + }, + "Defender1":{ + "recognition":"OCR", + "expected":"宿卫", + "action":"Click", + "next":[ + "xuanze" + ] + }, + "Caster":{ + "recognition":"TemplateMatch", + "template":"Mainpage/110.png", + "action":"Click", + "next":[ + "Caster1" + ] + }, + "Caster1":{ + "recognition":"OCR", + "expected":"构术", + "action":"Click", + "next":[ + "xuanze" + ] + }, + "Ranger":{ + "recognition":"TemplateMatch", + "template":"Mainpage/110.png", + "action":"Click", + "next":[ + "Ranger1" + ] + }, + "Ranger1":{ + "recognition":"OCR", + "expected":"远击", + "action":"Click", + "next":[ + "xuanze" + ] + }, + "LightMelee":{ + "recognition":"TemplateMatch", + "template":"Mainpage/110.png", + "action":"Click", + "next":[ + "LightMelee1" + ] + }, + "LightMelee1":{ + "recognition":"OCR", + "expected":"轻锐", + "action":"Click", + "next":[ + "xuanze" + ] + }, + "Tactical":{ + "recognition":"TemplateMatch", + "template":"Mainpage/110.png", + "action":"Click", + "next":[ + "Tactical1" + ] + }, + "Tactical1":{ + "recognition":"OCR", + "expected":"战略", + "action":"Click", + "next":[ + "xuanze" + ] + } +} \ No newline at end of file diff --git a/assets/resource/base/pipeline/8_resource.json b/assets/resource/base/pipeline/8_resource.json new file mode 100644 index 0000000..a0b6f34 --- /dev/null +++ b/assets/resource/base/pipeline/8_resource.json @@ -0,0 +1,453 @@ +{ + "resource_all":{ + "next":[ + "resource_one", + "resource_two", + "resource_three", + "resource_four", + "resource_five" + ] + }, + "resource_one":{ + "next":[ + "execute_one", + "come_ancient", + "big_map_one", + "ancient" + ] + }, + "execute_one":{ + "recognition":"OCR", + "expected":"执行", + "action":"Click", + "post_delay":2000, + "next":[ + "come_ancient", + "big_map_one", + "ancient" + ] + }, + "come_ancient":{ + "recognition":"OCR", + "expected":"来古", + "next":[ + "Swipe1" + ] + }, + "big_map_one":{ + "recognition":"OCR", + "expected":"大地图", + "action":"Click", + "post_delay":3000, + "next":[ + "ancient" + ] + }, + "ancient":{ + "recognition":"TemplateMatch", + "template":"resource/02.png", + "roi":[ + 126, 598, 41, 81 + ], + "action":"Click", + "next":[ + "hide_one" + ] + }, + "hide_one":{ + "recognition":"TemplateMatch", + "template":"resource/03.png", + "roi":[ + 42, 608, 28, 37 + ], + "action":"Click", + "next":[ + "Swipe1" + ] + }, + "Swipe1":{ + "action":"Swipe", + "begin":[ + 856, 330, 0, 0 + ], + "end":[ + 200, 485, 0, 0 + ], + "next":[ + "Swipe2" + ] + }, + "Swipe2":{ + "action":"Swipe", + "begin":[ + 995, 315, 0, 0 + ], + "end":[ + 500, 445, 0, 0 + ], + "next":[ + "Swipe3" + ] + }, + "Swipe3":{ + "action":"Swipe", + "begin":[ + 830, 293, 0, 0 + ], + "end":[ + 335, 405, 0, 0 + ], + "post_delay":2000, + "next":[ + "resource" + ] + }, + "resource_two":{ + "next":[ + "execute_two", + "Biandu", + "big_map_two", + "both" + ] + }, + "execute_two":{ + "recognition":"OCR", + "expected":"执行", + "action":"Click", + "post_delay":2000, + "next":[ + "Biandu", + "big_map_two", + "both" + ] + }, + "Biandu":{ + "recognition":"OCR", + "expected":"汴都", + "post_delay":1000, + "next":[ + "Swipe4" + ] + }, + "big_map_two":{ + "recognition":"OCR", + "expected":"大地图", + "action":"Click", + "post_delay":3000, + "next":[ + "both" + ] + }, + "both":{ + "recognition":"TemplateMatch", + "template":"resource/04.png", + "roi":[ + 242, 598, 38, 83 + ], + "action":"Click", + "next":[ + "hide_two" + ] + }, + "hide_two":{ + "recognition":"TemplateMatch", + "template":"resource/03.png", + "roi":[ + 42, 608, 28, 37 + ], + "action":"Click", + "next":[ + "Swipe4" + ] + }, + "Swipe4":{ + "action":"Swipe", + "begin":[ + 265, 355, 0, 0 + ], + "end":[ + 965, 390, 0, 0 + ], + "post_delay":2000, + "next":[ + "resource" + ] + }, + "resource_three":{ + "next":[ + "execute_three", + "deut_sea", + "big_map_three", + "sea" + ] + }, + "execute_three":{ + "recognition":"OCR", + "expected":"执行", + "action":"Click", + "post_delay":2000, + "next":[ + "deut_sea", + "big_map_three", + "sea" + ] + }, + "deut_sea":{ + "recognition":"OCR", + "expected":"申海", + "post_delay":1000, + "next":[ + "Swipe5" + ] + }, + "big_map_three":{ + "recognition":"OCR", + "expected":"大地图", + "action":"Click", + "post_delay":3000, + "next":[ + "sea" + ] + }, + "sea":{ + "recognition":"TemplateMatch", + "template":"resource/05.png", + "roi":[ + 357, 598, 42, 82 + ], + "action":"Click", + "next":[ + "hide_three" + ] + }, + "hide_three":{ + "recognition":"TemplateMatch", + "template":"resource/03.png", + "roi":[ + 42, 608, 28, 37 + ], + "action":"Click", + "next":[ + "Swipe5" + ] + }, + "Swipe5":{ + "action":"Swipe", + "begin":[ + 795, 590, 0, 0 + ], + "end":[ + 795, 130, 0, 0 + ], + "post_delay":2000, + "next":[ + "resource", + "Swipe6" + ] + }, + "Swipe6":{ + "action":"Swipe", + "begin":[ + 110, 350, 0, 0 + ], + "end":[ + 1110, 350, 0, 0 + ], + "post_delay":2000, + "next":[ + "resource" + ] + }, + "resource_four":{ + "next":[ + "execute_four", + "cantonese_prefecture", + "big_map_four", + "cantonese" + ] + }, + "execute_four":{ + "recognition":"OCR", + "expected":"执行", + "action":"Click", + "post_delay":2000, + "next":[ + "cantonese_prefecture", + "big_map_four", + "cantonese" + ] + }, + "cantonese_prefecture":{ + "recognition":"OCR", + "expected":"粤州", + "next":[ + "Swipe7" + ] + }, + "big_map_four":{ + "recognition":"OCR", + "expected":"大地图", + "action":"Click", + "post_delay":3000, + "next":[ + "cantonese" + ] + }, + "cantonese":{ + "recognition":"TemplateMatch", + "template":"resource/06.png", + "roi":[ + 471, 595, 42, 86 + ], + "action":"Click", + "next":[ + "hide_four" + ] + }, + "hide_four":{ + "recognition":"TemplateMatch", + "template":"resource/03.png", + "roi":[ + 42, 608, 28, 37 + ], + "action":"Click", + "next":[ + "Swipe7" + ] + }, + "Swipe7":{ + "action":"Swipe", + "begin":[ + 275, 375, 0, 0 + ], + "end":[ + 730, 300, 0, 0 + ], + "post_delay":2000, + "next":[ + "resource" + ] + }, + "resource_five":{ + "next":[ + "execute_five", + "often_quiet", + "big_map_five", + "often" + ] + }, + "execute_five":{ + "recognition":"OCR", + "expected":"执行", + "action":"Click", + "post_delay":2000, + "next":[ + "often_quiet", + "big_map_five", + "often" + ] + }, + "often_quiet":{ + "recognition":"OCR", + "expected":"常安", + "next":[ + "Swipe8" + ] + }, + "big_map_five":{ + "recognition":"OCR", + "expected":"大地图", + "action":"Click", + "post_delay":3000, + "next":[ + "often" + ] + }, + "often":{ + "recognition":"TemplateMatch", + "template":"resource/07.png", + "roi":[ + 584, 597, 45, 83 + ], + "action":"Click", + "next":[ + "hide_five" + ] + }, + "hide_five":{ + "recognition":"TemplateMatch", + "template":"resource/03.png", + "roi":[ + 42, 608, 28, 37 + ], + "action":"Click", + "next":[ + "Swipe8" + ] + }, + "Swipe8":{ + "action":"Swipe", + "begin":[ + 1115, 255, 0, 0 + ], + "end":[ + 475, 275, 0, 0 + ], + "post_delay":2000, + "next":[ + "resource" + ] + }, + "resource":{ + "recognition":"OCR", + "expected":"资源", + "action":"Click", + "next":[ + "ancient_both_sea_cantonese_often1", + "ancient_both_sea_cantonese_often2", + "ancient_both_sea_cantonese_often3", + "ancient_both_sea_cantonese_often4", + "ancient_both_sea_cantonese_often5" + ] + }, + "ancient_both_sea_cantonese_often1":{ + "recognition":"OCR", + "expected":"壹", + "action":"Click", + "next":[ + "fast" + ] + }, + "ancient_both_sea_cantonese_often2":{ + "recognition":"OCR", + "expected":"贰", + "action":"Click", + "next":[ + "fast" + ] + }, + "ancient_both_sea_cantonese_often3":{ + "recognition":"OCR", + "expected":"叁", + "action":"Click", + "next":[ + "fast" + ] + }, + "ancient_both_sea_cantonese_often4":{ + "recognition":"OCR", + "expected":"肆", + "action":"Click", + "next":[ + "fast" + ] + }, + "ancient_both_sea_cantonese_often5":{ + "recognition":"OCR", + "expected":"伍", + "action":"Click", + "next":[ + "fast" + ] + } +} \ No newline at end of file diff --git a/assets/resource/base/pipeline/9receive_reward.json b/assets/resource/base/pipeline/9receive_reward.json new file mode 100644 index 0000000..5dcd170 --- /dev/null +++ b/assets/resource/base/pipeline/9receive_reward.json @@ -0,0 +1,130 @@ +{ + "task1":{ + "next":[ + "daily1", + "weekly1", + "travel1", + "mission1" + ] + }, + "daily1":{ + "recognition":"OCR", + "expected":"任务", + "roi":[ + 1149, 650, 74, 40 + ], + "action":"Click", + "next":[ + "all1", + "receive1", + "weekly1", + "Quti1" + ] + }, + "all1":{ + "recognition":"OCR", + "expected":"全部领取", + "action":"Click", + "post_delay":5000, + "next":[ + "material1", + "receive1", + "weekly1", + "reward1", + "Quti1" + ] + }, + "material1":{ + "recognition":"OCR", + "expected":"获得物资", + "action":"Click", + "next":[ + "weekly1", + "Quti1" + ] + }, + "weekly1":{ + "recognition":"OCR", + "expected":"周常", + "roi":[ + 80, 310, 100, 98 + ], + "action":"Click", + "next":[ + "all1", + "material1", + "receive1", + "Quti1" + ] + }, + "receive1":{ + "recognition":"OCR", + "expected":"领取", + "roi":[ + 1097, 275, 69, 39 + ], + "pre_wait_freezes":3000, + "action":"Click", + "next":[ + "material1", + "weekly1", + "Quti1" + ] + }, + "travel1":{ + "recognition":"OCR", + "expected":"游历", + "roi":[ + 773, 656, 60, 36 + ], + "action":"Click", + "next":[ + "mission1", + "all1", + "Quti1" + ] + }, + "mission1":{ + "recognition":"OCR", + "expected":"任务", + "roi":[ + 29, 300, 79, 39 + ], + "action":"Click", + "next":[ + "all1", + "challenge", + "reward1", + "Quit" + ] + }, + "challenge":{ + "recognition":"OCR", + "expected":"挑战", + "action":"Click", + "next":[ + "all1", + "reward1", + "Quti1" + ] + }, + "reward1":{ + "recognition":"OCR", + "expected":"奖励", + "action":"Click", + "next":[ + "all1", + "Quit" + ] + }, + "Quti1":{ + "recognition":"TemplateMatch", + "template":"receive_reward/02.png", + "action":"Click", + "next":[ + "travel1", + "mission1", + "challenge" + ] + } +} \ No newline at end of file diff --git a/assets/resource/base/pipeline/my_task.json b/assets/resource/base/pipeline/my_task.json deleted file mode 100644 index 581eaa8..0000000 --- a/assets/resource/base/pipeline/my_task.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "MyTask1": {}, - "MyTask2": {}, - "MyTask3": {} -} \ No newline at end of file