mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
184 lines
8.8 KiB
JSON
184 lines
8.8 KiB
JSON
{
|
||
"version": "0.9",
|
||
"options": {
|
||
"connectType": 0,
|
||
"connectType_Doc": "连接类型:0-连接电脑上的模拟器;1-连接自定义端口,请手动修改'emulator.Custom'中的相关字段。默认0",
|
||
"taskDelay": 500,
|
||
"taskDelay_Doc": "识别的延迟:越快识别频率越快,但会增加CPU消耗。单位毫秒,默认500",
|
||
"controlDelayRange": [
|
||
0,
|
||
0
|
||
],
|
||
"controlDelayRange_Doc": "点击随机延时:每次点击操作会进行随机延时,降低封号风险(好像也没听说过谁被封号的)。格式为 [ 最小延时, 最大延时 ],单位为毫秒。例如想设置3~5秒延时,即修改为[ 3000, 5000 ],默认0~0",
|
||
"adbExtraSwipeDist": 50,
|
||
"adbExtraSwipeDist_Doc": "额外的滑动距离:adb有bug,同样的参数,偶尔会划得非常远。额外做一个短程滑动,把之前的停下来",
|
||
"adbExtraSwipeDuration": 1000,
|
||
"adbExtraSwipeDuration_Doc": "额外的滑动持续时间:adb有bug,同样的参数,偶尔会划得非常远。额外做一个短程滑动,把之前的停下来。若小于0,则关闭额外滑动功能",
|
||
"penguinReport": {
|
||
"Doc": "企鹅数据汇报:每次到结算界面,汇报掉落数据至企鹅数据 https://penguin-stats.cn/。true-开启,false-关闭,默认true",
|
||
"enable": true,
|
||
"cmdFormat": "curl -H \"Content-Type: application/json\" -d \"[body]\" \"https://penguin-stats.cn/PenguinStats/api/v2/report\" [extra]",
|
||
"cmdFormat_Doc": "命令格式,想打印详细信息可以尝试添加 -v -i"
|
||
}
|
||
},
|
||
"emulator_Doc": "下面的和模拟器窗口捕获逻辑有关,不需要修改",
|
||
"emulator": {
|
||
"BlueStacks": {
|
||
"handle": {
|
||
"class": "BS2CHINAUI",
|
||
"window": "BlueStacks App Player"
|
||
},
|
||
"adb": {
|
||
"path": "[EmulatorPath]Engine\\ProgramFiles\\HD-Adb.exe",
|
||
"addresses": [
|
||
"127.0.0.1:5555"
|
||
],
|
||
"devices": "[Adb] devices",
|
||
"addressRegex": "(.+)\tdevice",
|
||
"connect": "[Adb] connect [Address]",
|
||
"click": "[Adb] -s [Address] shell input tap [x] [y]",
|
||
"swipe": "[Adb] -s [Address] shell input swipe [x1] [y1] [x2] [y2] [duration]",
|
||
"display": "[Adb] -s [Address] shell dumpsys window displays | grep init= | awk ' { print $3 } '",
|
||
"displayFormat": "cur=%dx%d",
|
||
"screencap": "[Adb] -s [Address] exec-out \"screencap | gzip -1\"",
|
||
"screencapGzip": true,
|
||
"release": "[Adb] kill-server"
|
||
}
|
||
},
|
||
"BlueStacksInternational": {
|
||
"handle": {
|
||
"class": "",
|
||
"window": "BlueStacks"
|
||
},
|
||
"adb": {
|
||
"path": "[EmulatorPath]HD-Adb.exe",
|
||
"addresses": [
|
||
"127.0.0.1:5555"
|
||
],
|
||
"devices": "[Adb] devices",
|
||
"addressRegex": "(.+)\tdevice",
|
||
"connect": "[Adb] connect [Address]",
|
||
"click": "[Adb] -s [Address] shell input tap [x] [y]",
|
||
"swipe": "[Adb] -s [Address] shell input swipe [x1] [y1] [x2] [y2] [duration]",
|
||
"display": "[Adb] -s [Address] shell dumpsys window displays | grep init= | awk ' { print $3 } '",
|
||
"displayFormat": "cur=%dx%d",
|
||
"screencap": "[Adb] -s [Address] exec-out \"screencap | gzip -1\"",
|
||
"screencapGzip": true,
|
||
"release": "[Adb] kill-server"
|
||
}
|
||
},
|
||
"MuMuEmulator": {
|
||
"handle": {
|
||
"class": "Qt5QWindowIcon",
|
||
"window": "明日方舟 - MuMu模拟器"
|
||
},
|
||
"adb": {
|
||
"path": "[EmulatorPath]..\\vmonitor\\bin\\adb_server.exe",
|
||
"addresses": [
|
||
"127.0.0.1:7555"
|
||
],
|
||
"devices": "[Adb] devices",
|
||
"addressRegex": "(.+)\tdevice",
|
||
"connect": "[Adb] connect [Address]",
|
||
"click": "[Adb] -s [Address] shell input tap [x] [y]",
|
||
"swipe": "[Adb] -s [Address] shell input swipe [x1] [y1] [x2] [y2] [duration]",
|
||
"display": "[Adb] -s [Address] shell dumpsys window displays | grep init= | awk ' { print $3 } '",
|
||
"displayFormat": "cur=%dx%d",
|
||
"screencap": "[Adb] -s [Address] exec-out \"screencap | gzip -1\"",
|
||
"screencapGzip": true,
|
||
"release": "[Adb] kill-server"
|
||
}
|
||
},
|
||
"LDPlayer": {
|
||
"handle": {
|
||
"class": "LDPlayerMainFrame",
|
||
"window": ""
|
||
},
|
||
"adb": {
|
||
"path": "[EmulatorPath]adb.exe",
|
||
"addresses": [
|
||
"127.0.0.1:5555",
|
||
"emulator-5554"
|
||
],
|
||
"devices": "[Adb] devices",
|
||
"addressRegex": "(.+)\tdevice",
|
||
"connect": "[Adb] connect [Address]",
|
||
"click": "[Adb] -s [Address] shell input tap [x] [y]",
|
||
"swipe": "[Adb] -s [Address] shell input swipe [x1] [y1] [x2] [y2] [duration]",
|
||
"display": "[Adb] -s [Address] shell dumpsys window displays | grep init= | awk ' { print $3 } '",
|
||
"displayFormat": "cur=%dx%d",
|
||
"screencap": "[Adb] -s [Address] shell \"screencap | gzip -1\"",
|
||
"screencapGzip": true,
|
||
"release": "[Adb] kill-server"
|
||
}
|
||
},
|
||
"Nox": {
|
||
"handle": {
|
||
"class": "Qt5QWindowIcon",
|
||
"window": "夜神模拟器"
|
||
},
|
||
"adb": {
|
||
"path": "[EmulatorPath]nox_adb.exe",
|
||
"addresses": [
|
||
"127.0.0.1:62001",
|
||
"127.0.0.1:59865"
|
||
],
|
||
"devices": "[Adb] devices",
|
||
"addressRegex": "(.+)\tdevice",
|
||
"connect": "[Adb] connect [Address]",
|
||
"click": "[Adb] -s [Address] shell input tap [x] [y]",
|
||
"swipe": "[Adb] -s [Address] shell input swipe [x1] [y1] [x2] [y2] [duration]",
|
||
"display": "[Adb] -s [Address] shell dumpsys window displays | grep init= | awk ' { print $3 } '",
|
||
"displayFormat": "cur=%dx%d",
|
||
"screencap": "[Adb] -s [Address] exec-out \"screencap | gzip -1\"",
|
||
"screencapGzip": true,
|
||
"release": "[Adb] kill-server"
|
||
}
|
||
},
|
||
"XYAZ": {
|
||
"handle": {
|
||
"class": "Qt5QWindowIcon",
|
||
"window": "逍遥模拟器"
|
||
},
|
||
"adb": {
|
||
"path": "[EmulatorPath]adb.exe",
|
||
"addresses": [
|
||
"127.0.0.1:21503"
|
||
],
|
||
"devices": "[Adb] devices",
|
||
"addressRegex": "(.+)\tdevice",
|
||
"connect": "[Adb] connect [Address]",
|
||
"click": "[Adb] -s [Address] shell input tap [x] [y]",
|
||
"swipe": "[Adb] -s [Address] shell input swipe [x1] [y1] [x2] [y2] [duration]",
|
||
"display": "[Adb] -s [Address] shell dumpsys window displays | grep init=",
|
||
"displayFormat": " init=%dx%d",
|
||
"screencap": "[Adb] -s [Address] shell \"screencap | gzip -1\"",
|
||
"screencapGzip": true,
|
||
"release": "[Adb] kill-server"
|
||
}
|
||
},
|
||
"Custom": {
|
||
"handle": {
|
||
"class": "Custom Class",
|
||
"window": "Custom Window",
|
||
"Doc": "这俩不是用来捕获窗口的,是为了兼容现有的捕获模拟器的字段,随手写的,这两个字段实际不会使用到"
|
||
},
|
||
"adb": {
|
||
"Doc": "1.请将Adb解压到'path'中的路径(或者修改'path');2.请修改addresses为指定地址,若不填写,则使用devices自动查找",
|
||
"path": "[ExecDir]platform-tools\\adb.exe",
|
||
"addresses": [],
|
||
"devices": "[Adb] devices",
|
||
"addressRegex": "(.+)\tdevice",
|
||
"connect": "[Adb] connect [Address]",
|
||
"click": "[Adb] -s [Address] shell input tap [x] [y]",
|
||
"swipe": "[Adb] -s [Address] shell input swipe [x1] [y1] [x2] [y2] [duration]",
|
||
"display": "[Adb] -s [Address] shell dumpsys window displays | grep init=",
|
||
"displayFormat": " init=%dx%d",
|
||
"screencap": "[Adb] -s [Address] exec-out \"screencap | gzip -1\"",
|
||
"screencapGzip": true,
|
||
"release": "[Adb] kill-server"
|
||
}
|
||
}
|
||
}
|
||
}
|