批处理bat 之 adb input

实现功能:循环点击、滑动操作,间隔3秒

 

@echo off

adb wait-for-device

:start
::等待30秒
TIMEOUT /T 3
::点击屏幕坐标 752 565
adb shell input tap 752 565
TIMEOUT /T 3
::滑动坐标 160 344 160 544
adb shell input touchscreen swipe 160 344 160 544 1000

goto start

 

posted @ 2021-01-03 15:21  张小力  阅读(434)  评论(0编辑  收藏  举报