File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1+
12# JumpJump
23---
34
1920
2021用usb调试安卓手机,用adb截图并用鼠标测量距离,然后计算按压时间后模拟按压。
2122
22- adb shell input swipe <x1 > <y1 > <x2 > <y2 > [ duration(ms)] (Default: touchscreen) # 模拟长按
23- adb shell screencap <filename > # 保存截屏到手机
24- adb pull /sdcard/screen.png # 下载截屏文件到本地
23+ ``` bash
24+ $ adb shell input swipe < x1> < y1> < x2> < y2> [duration(ms)] (Default: touchscreen) # 模拟长按
25+ $ adb shell screencap < filename> # 保存截屏到手机
26+ $ adb pull /sdcard/screen.png # 下载截屏文件到本地
27+ ```
2528
26291 . 得到手指按的时间 t
27301 . 时间 = 距离 / 速度(常量) t = L / k
@@ -42,7 +45,7 @@ adb pull /sdcard/screen.png # 下载截屏文件到本地
42451 . 在电脑上下载好adb
43461 . 打开安卓手机的usb调试模式并授权连接的电脑
44471 . 打开微信跳一跳,并点击开始
45- 1 . 在Constans.java中配置好adb路径与截图路径 ,运行
48+ 1 . 在 ` Constans.kt ` 中配置好adb路径与截图路径 ,运行
46491 . 在弹出的窗口中先点击小人底部适当位置,然后再点想要跳的箱子的位置即可完成
4750
4851# 参考
You can’t perform that action at this time.
0 commit comments