美文网首页
window上通过cmd 模拟循环滑动

window上通过cmd 模拟循环滑动

作者: 蘇三子 | 来源:发表于2020-05-25 17:25 被阅读0次

突然有个想法直接在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  #跳转到循环开始

相关文章

网友评论

      本文标题:window上通过cmd 模拟循环滑动

      本文链接:https://www.haomeiwen.com/subject/qmtuahtx.html