[QuickMacro articles] how to make a turn on automatically APP enter the registration page automatically enter their phone number

  Wizard button, although early heard of, but have not really used, so recently a little time to try something simple, automatic cache cleanup APP through the script, open one hundred numbers and automatically enter the registration page, enter their mobile phone number.

 

Software Inventory

1. Lightning phone simulator: https: //www.ldmnq.com/

2. QuickMacro Mobile Assistant: http: //download.myanjian.com/

 

Extended platform

1. coding platform: http: //www.fateadm.com/

2. SMS verification reception: http: //www.51ym.me/

 

      After the Wizard button and the phone emulator installed, use the button spirit aide analog connection, the simulator can be granted to Elf normal debugging. Here you can also install other a god simulator, or directly connected USB phone, if you need to debug script needs on a real machine installed on the phone, "the wizard button Android version" and have ROOT privileges. PC Wizard button while the phone assistant can also write scripts and control UI interface packaged into APK, currently need to log in before they can apply for membership if no other requirements completely to run scripts on the simulator can be.

 

Practical steps

1. Obtain the need to open the package name of APP, the following interesting headlines are open APP.

Dim bundleName
bundleName = Sys.GetFront()
TracePrint bundleName

 

2. APP completely closed off and on, the following can be understood restart.

Sys.ClearAppCache "com.baidu.baijia"          //先关闭当前百家号APP
Delay 1000
RunApp "com.baidu.baijia"                     //延时1秒打开百家号

 

3. Use the "scratched" to find a particular point of view of the need to jump into the page.

Delay 3000
Dim intX,intY
FindPic 0,0,0,0,"Attachment:截图1.png","000000",0,0.9,intX,intY If intX > -1 And intY > -1 Then TracePrint intX,intY Tap intX,intY //点击该图的坐标进入 Else TracePrint "没有找到" End If

3.1 Open the "scratched -> Screenshots -> cutting -> marquee area -> OK -> Save -> stored in a computer somewhere."

3.2. You can look at the scratched area map test shots, the result is not -1 generally succeeded in finding the coordinates, you can copy the script.

 

4. scratched off, added to the first attachment theme, then copy and paste script to script block.

 

5. Add the corresponding good shots, you can do a good job script debugging.

Sys.ClearAppCache "com.baidu.baijia"
Delay 1000
RunApp "com.baidu.baijia"

Delay 3000
Dim intX,intY
FindPic 0,0,0,0,"Attachment:截图1.png","000000",0,0.9,intX,intY If intX > -1 And intY > -1 Then TracePrint intX,intY Tap intX,intY Else TracePrint "没有找到" End If Delay 9000 Dim intX1, intY1 FindPic 0,0,0,0,"Attachment:截图2.png","000000",0,0.9,intX1,intY1 If intX1 > -1 And intY1 > -1 Then TracePrint intX1,intY1 Tap intX1, intY1 InputText "13922895736" Else TracePrint "没有找到" End If

 

6. The automatic slide down the screen.

//用300毫秒的时间,从点100,100划动到点200,200
Swipe 300, 400, 300, -5000, 50 //Delay 100 //以下是多点触控的例子 //TouchDown 100, 200, 1//按住屏幕上的100,100坐标不放,并设置此触点ID=1 //TouchMove 300, -600, 1, 200//将ID=1的触点花200毫秒移动至300,300坐标 //TouchUp 1//松开弹起ID=1的触点

 

PS: If automated or fully automated login register, requires a coding or the above message authentication code is received, if the access message on the back of the phone number input request message interface to obtain verification code again and then enter a request. If CAPTCHA need access coding platform by acquiring a graphical code and then request a verification code after upload pictures, if the slider is verified online cases to achieve.

 

Guess you like

Origin www.cnblogs.com/zerofc/p/11347651.html