Android input命令

1.Android Input命令,可以实现输入,单击,拖动,按键等事件,可以实现自动化脚本编写。

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)



你可能感兴趣的:(Android input命令)