input [touchscreen|touchpad|touchnavigation] tap <x> <y>

在坐标(x,y)出点击一次

例如adb shell input tap 500 500,就是在屏幕(500,500)处点击一次;

实现:(~/dopic.sh)

for((i=0; i < 700; i++))
do
        adb shell input tap 350 1100

        //每一秒执行一次
        sleep 1
done

 

相关文章: