first commit

This commit is contained in:
编码猿
2024-09-27 01:26:21 +08:00
commit 63459fdc40
12 changed files with 148 additions and 0 deletions

1
config/.pydio Normal file
View File

@@ -0,0 +1 @@
fc3940ae-ad6b-4e14-945c-7d3b195ddf08

27
config/index.js Normal file
View File

@@ -0,0 +1,27 @@
const config = {
// 基础命令
baseShell: {
adbkeyboard: 'adb shell pm list packages adbkeyboard',
adb: 'adb version'
},
// 功能性命令
shellAction: {
// 点击输入框
tap: 'adb shell input tap',
// 滑动页面
swipe: 'adb shell input swipe',
},
// 坐标集合
shellCoordinate: {
// 先点赞,然后滑动下一个视频
Fabulous: {
tap: '988 1229', // 点赞按钮的坐标
swipe: '868 1811 800 272', // 滑动页面
}
},
startShell: (action, coordinate) => {
return `${config.shellAction[action]} ${coordinate}`
}
}
module.exports = config