The last article recommended a PC side fishing tool, but if you want to automate on the phone, and the code is not strong, can it be implemented?


The answer is yes.


Today, I would like to introduce Tasker, an Android system function enhancement App, which can help us complete the automatic operation of mobile phone and efficiently fish.




1.
What is a Tasker?



Tasker is a system-enhanced App on Android, which does not require Root permission and can be fully customized. Through interface configuration parameters, it can complete the automatic operation of complex facial scenes.


2,
Function is introduced


Tasker has four tabs at the top that contain common operations.
  • Profile: Defines the scenarios that trigger

  • Tasks: Specific tasks and events

  • Scenarios: Custom scenarios and UIs

  • Variables: Defined global variables





3,
How about an example?



Take the daily scheduled to go to Beijing * sign in to lead Beijing beans as an example to say how to achieve this automatic operation.


First of all, in the “Task Tab” interface, click the “+” in the lower right corner, define a name: Beijing * check-in, and create a new task.


The first action is to kill jing * App.


The operation steps are in sequence: click on the lower right corner of the new – program – end application – select Beijing * App, use the back key to return to the task editing interface.




The two operations of the task are to start the Jing * App, and the steps are the same as above.




Operations 3 and 4, define a global variable, let the operation implicitly wait for a predetermined period of time, simulate cold start jing * App.


To ensure the security of the operation, a random processing is required for the waiting time here.


The steps are as follows: Select variable item – variable value randomization, specify maximum and minimum value.




The fifth operation performs a series of automatic actions within the application, including: click, long press, enter, slide, and so on.


Combined with the TouchTask plug-in (download at the end of this article), Tasker can complete the automatic operation of the App interface.


TouchTask includes the following functions: Click, long press, gesture, return to previous page, Return to desktop, OCR, Screenshot, screen unlock, Settings, etc.


Create an action – plug-in – Select TouchTask-Actions Event Listener – Configure – Actions Select Tap – title bar hand and return to desktop.




Open the Beijing * App and click Select Point in the Notification bar, the resident message bar.




Click the 5th Tab at the bottom to open the [My] Settings interface, jump to the Tasker App interface, and immediately capture the coordinate or Text property value of this control.


Select any of them, in this case the Text property value; Coordinate values have a higher success rate than Text attribute values.




After this operation, the page jumps to the setting interface, which includes: the entrance to get Beijing beans.




The sixth, seventh and eighth operations are respectively click to enter the Beijing Bean display page, click to enter the Beijing * interface, click to sign in.


The operation method is similar to the previous step, which is 3 click operations. After these 3 operations, the whole check-in process is completed and today’s Jingdou is received.


It should be noted that all page jumps involve network requests, and there is a period of time from request to data and display interface, so a waiting time should be added.




Step 9, go back to the desktop.


The operation of returning to the desktop is also very simple. Directly use the Go Home in the global action of the TouchTask plug-in to simulate pressing the home button and return to the system desktop.




Through the above nine operations, an automatic check-in task is created.


Next, on the Tab Tab page, create a trigger condition.


Click the + sign in the lower right corner – select time – specify the start time and end time.


For example: check in every morning at 7 a.m., we just specify the same start time and end time.




When you return, select the Beijing * check-in task created in the previous step.


In this way, only simple configuration is required, without writing any code, a simple automatic task is completely created. The automatic operation will be performed at 7 o ‘clock every day, and the check-in operation will be completed by going to Beijing * App.




4,
Common plug-in



Tasker can combine many plug-ins to perform complex automation operations.


Common plug-ins include: TouchTask/AutoInput, Notification Listener, AutoVoice, SecureTask, ActivityTask, Seure Settings, Tasker SQLite Plugin, Memento The Database and so on.




5,
Other Application Scenarios



The above is just a simple automation.


In fact, the combination of these plug-ins and the trigger scenarios provided by Tasker, the complex variety of operation types (support for Java, JS, Shell commands), and UI customization can accomplish a lot of complex automation.


Like the following:
  • Customize the UI interface with the scene, create desktop widgets, and create a fast SMS sending interface.

  • Tasker can simulate network requests, including: POST/GET, combined with data capture, to achieve some relatively fixed functional scenarios.

  • With the help of plug-ins, automated operations can almost completely simulate human operations, including: click, long press, slide, sleep, system key operation, etc.

  • When listening to an App launch (e.g. when opening a map), automatically turn on location and adjust the volume to the maximum.

  • Monitor message notification bar to achieve a quick grab red envelope

  • At 6 am every day, semi-automatically turn off the flight mode, turn on Wifi, turn on the Alipay App to collect energy, and turn off the router at home and turn on the flight model of mobile phone at 12 PM.


6,
Other instructions

To ensure that Tasker can automate its defined tasks, battery optimization needs to be ignored and applications allowed to run in the background.


In addition, if the plug-in uses barrier-free services, you need to manually enable the service in the Settings.


There are many configuration files, tasks, and scenarios written by others on the network that can be imported from local folders by holding down Tab. You can also directly use the data restore function in Settings to obtain the file creation tasks and configuration files.


This article was first published on the wechat public account “AirPython”. I have uploaded the cracked version of Tasker and the data configuration file used in this article to the background of the public account. Reply to “Tasker” to obtain all the content.


Life is long, but a hundred years, let us work together efficiently, elegant fish!



Recommended reading


How to automate your work with Python




Automated essay | you want carefree fish daily operation, Python implemented for you




Automated essay | don’t have to worry about the old people with smartphones