adb shell input 命令模拟输入

作者: 2b75747cf703 | 来源:发表于2017-02-22 11:40 被阅读618次

    某app点赞刷量

    :1
    adb shell input touchscreen tap 510 272
    rem adb shell input touchscreen tap 1530 272
    adb shell input touchscreen tap 800 420
    adb shell input touchscreen tap 782 530
    adb shell input touchscreen tap 800 730
    adb shell input keyevent KEYCODE_BACK
    goto 1
    

    每隔三秒刷新一次网页

    :1
    adb shell input swipe 540 500 540 1400
    ping 127.0.0.1 -n 3 > nul
    goto 1
    
    Usage: input [<source>] <command> [<arg>...]
    
    The sources are:
          trackball
          joystick
          touchnavigation
          mouse
          keyboard
          gamepad
          touchpad
          dpad
          stylus
          touchscreen
    
    The commands and default sources are:
          text <string> (Default: touchscreen)
          keyevent [--longpress] <key code number or name> ... (Default: keyboard)
          tap <x> <y> (Default: touchscreen)
          swipe <x1> <y1> <x2> <y2> [duration(ms)] (Default: touchscreen)
          press (Default: trackball)
          roll <dx> <dy> (Default: trackball)
    

    相关文章

      网友评论

        本文标题:adb shell input 命令模拟输入

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