Paper finished, feel the mind for a long time not inspired by the inspiration, the previous days roommates introduced a small game, I suddenly came to the inspiration can write simple Android program to automate the operation. The main pass will be three steps:
1,android the capture of the screen. Because of the security reasons, the process is more troublesome, I am currently using the open User debugging mode, using the ADB script repeatedly loop.
2, image analysis. This part of the code is reflected in the process is relatively simple.
3, Analog click. The code is already in the body, and I have adopted one of the simplest methods, the code will do a detailed analysis below.
Let's go to the last picture and run to 101 points in a breath:
Perfect in ... The following code analysis will be performed ....
Reference:
http://w3facility.org/question/how-to-simulate-touch-from-background-service-with-sendevent-or-other-way/
Http://stackoverflow.com/questions/11142843/how-can-i-use-adb-to-send-a-longpress-key-event
https://grymoire.wordpress.com/2014/09/17/remote-input-shell-scripts-for-your-android-device/
Stick Hero Plug-in software Android code compilation and Analysis (perfect)