android drag and drop shell command

What I want is to scroll the screen PRECISELY from command line.
For example, scroll up 100 pixels.
There is input shell command that can do tap and swipe.
However, the input swipe 500 500 500 400 command scroll the screen more than 100 pixels.
Maybe I can add long duration (10s) to make it more close.

input swipe 500 500 500 400 10000

But I am thinking more smart way.

I could do that in monkeyrunner as below


If independent commands for down, move and up provided, I am thinking that it could be done.

Is there any method?

Source: shell

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.