adb shell input swipe 500 500 100 1000 100
command: adb shell input swipe xSource, ySource, xDestination, yDestination, Duration
ex) adb shell input swipe 500 500 100 1000 100
-> (500, 500) 좌표에서 (100,1000)로 100ms동안 터치를 해서 움직인다.
응용 :
Source x,y 와 Destination x,y를 같게 설정하고 Duration만 길게하면 길게터치 (Long Press)가 된다.
'Android' 카테고리의 다른 글
adb 명령어 (0) | 2019.01.15 |
---|---|
안드로이드 터치 이벤트 (adb shell input tap) (0) | 2019.01.15 |
안드로이드 키 이벤트 (adb shell input keyevent) (0) | 2019.01.15 |