Play wechat with computer

 September
2018-04-04 / 0 comments / 4433 reading / Checking for inclusion

Preparation conditions

  • You need to install an ADB driver
  • After the mobile phone is connected to the computer, enter settings - Developer options - Open USB debugging - mobile phone - pop up box: all USB debugging is allowed

Installing the ADB driver

Here is an article written by a foreign author course I use win7 demo here, download first ADB driver , unzip

1. First, right-click computer - properties - advanced system settings - environment variables;
 4227094827.png
2. Pop up the "environment variable" dialog box, and click "new" in the system 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 ADB development tools in the Android SDK directory) is shown in the figure above

3. Edit the system variable path and modify it to the newly created environment variable
 4220545315.png
4. Open the CMD tool of Windows 7 system, input ADB, and press enter. If the parameter appears, the installation is successful.
 3883997206.png
After the above preparations are ready, input them in the CMD terminal adb devices

Installation and use

  1. Installation method 1:
    One click download and installation, no need to build an environment. To use it foolishly, 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 2:
    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 Represents the distance and velocity value, which can be adjusted appropriately with different resolutions
  • /jump -m 2000 parameter m Indicates the sleep time in milliseconds

principle

  • Screen capture of game using ADB shell
  • Read the screen capture image, get the current position, the next jump position, calculate the jump distance and touch screen time
  • Use the ADB shell to send the input swap event to jump

This paper refers to

  1. How to install ADB on windows, MacOS and Linux
  2. Using golang to realize the automatic play of wechat jump game
  3. Methods and steps of configuring ADB environment variables in win7
zero

Comments (0)

cancel