项目自带 adb
先进入到项目的adb目录下面:adb shell input
Usage: input [] […]
The sources are:
trackball
joystick
touchnavigation
mouse
keyboard
gamepad
touchpad
dpad
stylus
touchscreen
The commands and default sources are:
text (Default: touchscreen)
keyevent [–longpress] … (Default: keyboard)
tap (Default: touchscreen)
swipe [duration(ms)] (Default: touchscreen)
press (Default: trackball)
roll (Default: trackball)
D:\pycode\xxx\libs\adb\windows>adb shell input tap 299 572 默认是touchscreen
该命令是用于向设备发送一个点击操作的指令,参数是 坐标
adb shell input tap 299 572
https://blog.csdn.net/good123_2014/article/details/79107765
https://www.jianshu.com/p/c2ad70ba7411