用adb进行输入

参考:https://www.cnblogs.com/chavin/p/11216326.html

# 文本输入:
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)
# 拖放操作:
draganddrop <x1> <y1> <x2> <y2> [duration(ms)] (Default: touchscreen)
    press (Default: trackball)
    roll <dx> <dy> (Default: trackball)

ADB下载:http://adbdownload.com/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章