现在的位置: 首页 > 综合 > 正文

Android input命令

2018年05月26日 ⁄ 综合 ⁄ 共 500字 ⁄ 字号 评论关闭
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)

抱歉!评论已关闭.