Wechat applet hop hop assistant program guide north

1. The test environment for this experiment:
Win7 64-bit + Huawei Honor 9.
2. Preparation:
Install pea pods on both the computer and the mobile phone. The mobile phone is transferred to the WeChat applet and jumps to the home page interface.
3. How to use
1. Start adb

adb start-server

Possible error 1:
C:\Users\Admin>adb devices List of devices attached
restart adb kill adb adb kill-server and start adb again.

* daemon not running; starting now at tcp:5037
* daemon started successfully

It means that the ADB service is successfully started.
2. Take screenshots

adb shell screencap -p /sdcard/autojump.png
adb pull /sdcard/autojump.png 

3. Enter wechat_jump_game-master

python wechat_jump_auto.py

Possible error 2:
adb server version (32) doesn't match this client (39);
error reason: adb server and SDK path are inconsistent.
Solution: Modify the environment variable and write the current adb path into the system path
. The first time it jumps about 1000+, it will be gg, and then restart manually at about 1900 times. It is found that the leaderboard does not update this score. It is estimated that the bug has been fixed.
* This article is only for python learning and use *
Code: https://github.com/wangshub/wechat_jump_game
Reference from:
https://zhuanlan.zhihu.com/p/32622932?utm_source=wechat_session&utm_medium=social

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325936036&siteId=291194637