window上通过cmd 模拟循环滑动

突然有个想法直接在window 上通过adb shell 模拟一个滑动指令,实现看小说自动翻页(或者自动刷抖音)

:x  # 循环开始
set /a x1=%random%%%300+600
set /a y1=%random%%%100+1000
set /a x2=%random%%%100+200
set /a y2=%random%%%100+1000
set /a tt=%random%%%10 + 40 # 随机数
adb shell input swipe %x1% %y1% %x2% %y2% %tt%  # adb shell 模拟滑动
set /a rnd=%random%%%3+4
timeout /T %rnd%   # 睡眠指定时间(单位:秒)
goto x  #跳转到循环开始
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。