Java wechat hop operation guide

Java wechat jump operation guide, which refers to which to choose.

The idea of this paper is to control the operation of the mobile phone through ADB, write a JFrame in Java to cover the mobile phone screen, and use the mouse to obtain the starting point and ending point of the jump, The relationship between the jump JFrame distance and the pressing duration (linear relationship) is obtained through the test, and then the pressing duration is operated according to the calculated results through ADB (a third-party tool is also needed here to transmit the picture to the computer in real time and cover the JFrame on the picture on the computer).

The code is short as follows:

The following code sets the transparency:

X0 Y0 is the coordinate of the point clicked by the mouse for the first time, X1 Y1 is the second coordinate, and the flag is used to judge whether it is the first or second click.

This section is a code to control CMD operation, so you don't have to enter it in CMD every time:

The coefficient here needs to be adjusted through continuous test, that is, the last coefficient 4.6 can be adjusted by itself:

The operation method is very simple. Right click the position of the current chess piece once, and then right click the landing position again.

For more information, please refer to the special topic "wechat jump".

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>