문제

I'm trying to use adb to send repetitive touch events to android so I need to entering the same codes to cmd.exe again and again like "adb shell input tap 50 50".

This is easily done by a Robot class in java if I just leave my computer there and let it control my keyboard and put the cmd window active, however I want to make my program to input the code to cmd while I'm doing my own stuff, meaning cmd is running in background but it can still get input and run.

Is it possible? If it is, how is it achieved? Does runtime.exec help?

Thank you very much!

도움이 되었습니까?

해결책

I solved this by running the whole thing in a virtual Box, and I can do my work outside the box...

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top