用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/

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