adb shell input text "sometext"
또는"adb 쉘 입력 텍스트"가 소프트웨어 키보드 입력을 시뮬레이트합니까?
adb shell input keyevent eventid
이 각각 가상/하드웨어 키보드에서 실제 입력을 시뮬레이션 할? 이 명령에 대한 신뢰할 수있는 문서는 내가 developer.android.com/
에 이러한 명령에 대한 문서를 찾을 수 없습니다
있습니까?adb shell input text "sometext"
또는"adb 쉘 입력 텍스트"가 소프트웨어 키보드 입력을 시뮬레이트합니까?
adb shell input keyevent eventid
이 각각 가상/하드웨어 키보드에서 실제 입력을 시뮬레이션 할? 이 명령에 대한 신뢰할 수있는 문서는 내가 developer.android.com/
에 이러한 명령에 대한 문서를 찾을 수 없습니다
있습니까?adb shell input help
는 (입력 장치의 긴 목록 후) 생성 : 물리적 (: 키보드 기본값)과의 KeyEvent :
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 keyboard text "foo"
은 정상적으로 작동합니다. 화면에서 원시 키 코드를 보낼 수는 없습니다.
해결책이 있습니까? – acntwww