Preparation conditions

  • Need to install adb driver
  • After the phone is connected to the computer, enter Settings - Developer Options - Open USB Debugging - Phone - Pop up box: USB debugging is allowed

Installing adb drive

Here is an article by a foreign author course I use win7 to demonstrate here. Download it first ADB drive , unzip

1. Right click Computer - Properties - Advanced System Settings - Environment Variables;
 4227094827.png
2. The "Environment Variable" dialog box pops up. Click "New" in the system variable to create an environment variable.
 2914062384.png
In the new system variable, the configuration variable name: Android Variable Value: F: ADB platform tools latest windows platform tools (the full path of the Android SDK directory where ADB development tools are located) is shown in the figure above

3. System variable - Path - Edit, change to the newly created environment variable
 4220545315.png
4. Open the CMD tool of Windows 7 system, enter adb and press Enter. The parameter appears, indicating that the installation is successful.
 3883997206.png
After the above preparations are ready, input at the CMD terminal adb devices

Installation and use

  1. Installation method 1:
    One click download and installation, without setting up the environment. For foolproof use, please download the binary compression package of the corresponding operating system on the release page. After decompression, execute the jump file
 $ ./ jump
  1. Installation method II:
    Manual installation, development and debugging
 $ go get -u github.com/sundy-li/wechat_autojump_game $ cd $GOPATH/src/github.com/sundy-li/wechat_autojump_game/cmd $ go run main.go

parameter

  • /jump -s 1.392 parameter s It represents the distance and speed value, which can be adjusted appropriately for different resolutions
  • /jump -m 2000 parameter m Indicates the sleep time in milliseconds

principle

  • Use the adb shell to capture the game screen
  • Read the screenshot image, obtain the current position, the next jump position, and calculate the jump distance and touch screen time
  • Use the adb shell to send the input swipe event to jump

Reference

  1. How to install ADB on Windows, MacOS and Linux
  2. Realize WeChat Jump and Jump Game Auto Play with Golang
  3. Methods and steps for configuring adb environment variables in win7
End