Some time ago, I touched Auto. Js (github.com/hyb1996/Aut…). , very easy to use and very interesting, so wrote a wechat red envelope monitoring script

The idea is to keep getting screenshots of the phone, enter if you find new messages, and click on the red envelope if you find more

Since auto-.js can only be installed on Android, the script is also android only

Auto. Introduction of js

  • Script tools for Android
  • An automatic operation software that does not require Root permission, mainly implemented by barrier-free services
  • It can automatically click, slide, input text, open applications and other functions

For more details, please refer to Github

The download link is github.com/hyb1996/Aut… , download the latest APK file to your mobile phone and install it

The software interface is as follows, including multiple tabs:

  • Script: View existing Scripts (Scripts)
  • Tutorial: auto-.js official documentation
  • Community: Auto-.js communication community
  • Examples: Lots of sample code
  • Management: Manages the scripts that are currently running, for example, terminating all scripts

In short, you can write scripts that follow the syntax of Auto-.js (mostly JavaScript) and then run them through Auto-.js to do some automated tasks on your phone

Method of use

Let wechat back to the main interface, that is, do not let wechat in the chat page, moments and other states

Run auto-. js software on the mobile phone, click the three horizontal lines in the upper left corner, open “barrier-free service” and “Stable mode” in the menu bar, so that auto-. js can complete automatic operations such as screen capture and analog pressing

Return to the main interface of the software, in the “script” TAB page, click the plus sign in the lower right corner, select “file”, name as “wechat red envelope”, click “OK” to save, and then enter the script editing page

Copy the complete code into the script, click “Save”, and then “Run”

The phone will automatically jump to wechat, first detect some relevant parameters (such as message starting position, height of each line, etc.), and then continuously monitor new messages and perform operations according to the time interval defined in the code (i.e. the number in the sleep function, the third from last line, in milliseconds)

eggs

Before this, I also wrote a wechat auto.js script, the principle is the same as my other project before, github.com/Honlan/wech…

The distance and time coefficients default to 1900, which works well on my Mi MIX2 and easily exceeds 1000, but may need to be fine-tuned depending on the screen resolution for other phone models

Project code

The full project is on Github, github.com/Honlan/Auto… , which includes wechat hongbao and jump a jump two Auto-.js scripts, as well as a simple user instructions document

Have Fun!