QuickMacro mobile terminal through the code

ScreenX Dim, screenY
screenX = getScreenX ()
screenY = getScreenY ()
PutAttachment "/ mnt / shell / emulated / 0 / Others", "* .txt"
Import "File.lua" // ****** text can not plug remove ****
total number of lines, number of rows Dim, results, b, c, i = 4
total number of lines = File.linesnumber ( "/ mnt / shell / emulated / 0 / Others / 2.txt") // read the number of lines of text files
TracePrint total number of rows

The Randomize //
// result = Int (((Head Number +. 1 -2) * the Rnd ()) +. 1)
// Traceprint Results

Do Until i>总行数
i=i+1
TracePrint i

b=File.ReadLine("/mnt/shell/emulated/0/Others/2.txt", i)
TracePrint b
c=File.ReadLine("/mnt/shell/emulated/0/Others/3.txt", i)
TracePrint c


////////////// Log
Tap 600, 1236 // Click coordinate my
Delay 3000
the Tap 360,114
Delay 3000
the Tap 360, 624
Delay 3000
the Tap 255, 689
Delay 3000 // Finish to exit here


////////////// login
Tap 600, 1236 // Click coordinate my
Delay 3000
the Tap 285, 144
Delay 10000
the Tap 444, 444
Delay 1000
InputText b // Enter here the account
Delay 500
the Tap 444 , 500
Delay 100
InputText c // here password
Delay 1000
the KeyPress "the enter"
Delay 5000


For 7

Tap 100, 1236
Delay 1000

// left swipe
the Swipe screenX / 2, screenY / 2, screenX /. 9, screenY / 2
Delay 1000
the Swipe screenX / 2, screenY / 2, screenX /. 9, screenY / 2
Delay 1000
the Swipe screenX / 2, screenY / 2 , screenX /. 9, screenY / 2
Delay 1000
the Swipe screenX / 2, screenY / 2, screenX /. 9, screenY / 2
Delay 1000

// upward swipe
the Swipe screenX / 2, screenY / 2, screenX / 2, screenY /. 9
Delay 3000

Tap 333, 555
Delay 3000

//向上滑动屏幕
Swipe screenX / 2, screenY / 2, screenX / 2, screenY / 9
Delay 500
Swipe screenX / 2, screenY / 2, screenX / 2, screenY / 9
Delay 500
Swipe screenX / 2, screenY / 2, screenX / 2, screenY / 9
Delay 500
Swipe screenX / 2, screenY / 2, screenX / 2, screenY / 9
Delay 500
Swipe screenX / 2, screenY / 2, screenX / 2, screenY / 9
Delay 500
Swipe screenX / 2, screenY / 2, screenX / 2, screenY / 9
Delay 500
Swipe screenX / 2, screenY / 2, screenX / 2, screenY / 9
Delay 500
Swipe screenX / 2, screenY / 2, screenX / 2, screenY / 9
Delay 500
Swipe screenX / 2, screenY / 2, screenX / 2, screenY / 9
Delay 500
Swipe screenX / 2, screenY / 2, screenX / 2, screenY / 9
Delay 500

/ *
///////////////// review
the Tap 373, 1240
Delay 1000
InputText "1" // here Write comment
Delay 200
the Tap 650, 1250
Delay 3000
* /

//////// share
the Tap 677, 1250
Delay 3000
the Tap 185, 885
Delay 1000
InputText "1" // here Write comment
Delay 200
the Tap 170, 1000
Delay 200
the Tap 675, 85
Delay 3000


KeyPress "Back"
Delay 3000
KeyPress "Back"
Delay 3000
Next
Delay 5000
KeyPress "Back"
Loop
Delay 50000

 

 

 

 

 

 

 

 


////////////// login
Tap 600, 1236 // Click coordinate my
Delay 1000
the Tap 285, 144
Delay 2000
the Tap 444, 420
Delay 100
InputText "m.anjian.com" // here enter the account number
Delay 2000
the Tap 444, 500
Delay 100
InputText "Grand Master" // enter your password below
Delay 1000
the KeyPress "the enter"
Delay 10000

////////////// Log
Tap 600, 1236 // Click coordinate my
Delay 1000
the Tap 360,114
Delay 1000
the Tap 360, 624
Delay 1000
the Tap 255, 689
Delay 1000 // Finish to exit here

 

 

 

 


Call message alert ( "")
Delay 1000

Tap 600, 1236
Delay 100
Touch screenX / 2, screenY + 50, 1000

100 Delay
// ---------------------------------------------- ----------------------------------------------
Call message alert ( "automatic sliding demo")
the Swipe screenX / 2, screenY / 2, 0, screenY / 2
Delay 500
the Swipe screenX / 2, screenY / 2, screenX, screenY / 2
Delay 500
the Swipe screenX / 2,. 1, screenX / 2, screenY
Delay 500

// ------------------------------------------------ --------------------------------------------
Call message alert ( "press under the HOME key ")
the KeyPress" Home "
Delay 2000

// ------------------------------------------------ --------------------------------------------
Call message alert ( "earthquake two seconds to try? ")
Vibrate 2000
Delay 1000

//--------------------------------------------------------------------------------------------

// ------------------------------------------------ --------------------------------------------
Call message alert ( "test Look call ")
Phone.Dial (10086) // will not call, just enter the phone number (call: Phone.DialOut 10086)
Delay 1500
the KeyPress" Home "
Delay 1000

//--------------------------------------------------------------------------------------------
InputText "11"


// ------------------------------------------------ --------------------------------------------
Call message alert ( "The last key to the mobile version of the official website to see it ~ ")
Delay 1000
the RunApp" com.android.quicksearchbox "
Delay 2000
InputText" m.anjian.com "
Delay 100
the KeyPress" the Enter "
Delay 2000

// ------------------------------------------------ --------------------------------------------
Sub prompt information (content)
TracePrint content
ShowMessage content
Delay 1500
End Sub

Guess you like

Origin www.cnblogs.com/longxinyv/p/12081979.html