免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
返回列表 发帖

按键精灵手机助手 常用代码

取字符
  1. Dim a, b,c,d,e,g
  2. a = File.ReadLines("/storage/emulated/0/baidu/password.txt")



  3. For i = 1 to 6225
  4.        
  5.         b = Split(a(i-1), "---")
  6.         d = Left(b(0), 4)
  7.        
  8.         g = b(1) & "---" & d & "\n"
  9.         File.Append("/storage/emulated/0/baidu/ps.txt", g)


  10. //        TracePrint g
  11.        
  12. Next
复制代码
------------------------------------------------------------------
比较
  1. Dim a, b,c,d,e,g, r
  2. a = File.ReadLines("/storage/emulated/0/baidu/password.txt")
  3. c = File.ReadLines("/storage/emulated/0/baidu/oo.txt")

  4. For e = 1 To 33659
  5.         d = d & a(e-1)       
  6. Next

  7. //r = UTF8.InStr(1, d, "13002956954")


  8. For i = 1 to 12002
  9.        
  10.         b = Split(c(i-1), "---")
  11.        
  12.         r = UTF8.InStr(1, d, b(0))
  13.        
  14.         If r = 0 Then
  15.        
  16.         g = b(0) & "---" & b(1) & "\n"
  17.         File.Append("/storage/emulated/0/baidu/ps.txt", g)
  18.        
  19.         End If
  20. Next


  21. //TracePrint r
复制代码
---------------------------------------------------------------

金币
  1. Dim intX, intY, i, e



  2. For i = 1 To 92
  3.        
  4.         Delay 500
  5.        
  6.         Do
  7.                 FindPic 0, 0, 0, 0, "Attachment:1.png", "000000", 0, 0.9, intX, intY
  8.                 If intX > -1 And intY > -1 Then
  9.                 Tap intX, intY
  10.                 Exit Do
  11.                 End If
  12.             Loop

  13.         Delay 300
  14.        
  15.         Do
  16.                 FindPic 0, 0, 0, 0, "Attachment:2.png", "000000", 0, 0.9, intX, intY
  17.                 If intX > -1 And intY > -1 Then
  18.                 Tap intX, intY
  19.                 Exit Do
  20.                 End If
  21.         Loop
  22.        
  23.         Delay 300
  24.        
  25.         Do
  26.                 FindPic 0, 0, 0, 0, "Attachment:3.png", "000000", 0, 0.9, intX, intY
  27.                 If intX > -1 And intY > -1 Then
  28.                 Tap intX, intY
  29.                 Exit Do
  30.                 End If
  31.         Loop
  32.        
  33.         Delay 300
  34.        
  35.         Do
  36.                 FindPic 0, 0, 0, 0, "Attachment:4.png", "000000", 0, 0.9, intX, intY
  37.                 If intX > -1 And intY > -1 Then
  38.                 Tap intX, intY
  39.                 Exit Do
  40.                 End If
  41.         Loop
  42.        
  43.         Delay 1000
  44.        
  45.         Do
  46.                 FindPic 0, 0, 0, 0, "Attachment:4.png", "000000", 0, 0.9, intX, intY
  47.                 If intX > -1 And intY > -1 Then
  48.                 Tap intX, intY
  49.                 Exit Do
  50.                 End If
  51.         Loop
  52.        
  53.         Delay 1500
  54.        
  55.         Do
  56.                 FindPic 0, 0, 0, 0, "Attachment:3t.png", "000000", 0, 0.9, intX, intY
  57.                 If intX > -1 And intY > -1 Then
  58.                 Tap intX, intY
  59.                 Exit Do
  60.                 End If
  61.         Loop
  62.        
  63.         Delay 1000
  64.        
  65.         Do
  66.                 FindPic 0, 0, 0, 0, "Attachment:7.png", "000000", 0, 0.9, intX, intY
  67.                 If intX > -1 And intY > -1 Then
  68.                 Tap intX, intY
  69.                 Exit Do
  70.                 End If
  71.         Loop
  72.        
  73.         Delay 500
  74.        
  75.         Do
  76.                 FindPic 0, 0, 0, 0, "Attachment:8.png", "000000", 0, 0.9, intX, intY
  77.                 If intX > -1 And intY > -1 Then
  78.                 Tap intX, intY
  79.                 Exit Do
  80.                 End If
  81.         Loop
  82.        
  83.         Delay 3500
  84.        

  85. Next

  86. e = Dialog.MsgBox("完成",0)
复制代码
---------------------------------------------------------------------------

登录
  1. Dim a, b, c, e, g, intX, intY, intA, intB, intC, intD, intE, intF, intG, intH
  2. a = File.ReadLines("/storage/emulated/0/baidu/password.txt")
  3. c = 0
  4. g = 0


  5. For i = 1 to ReadUIConfig("输入框1", 10)
  6.        
  7.         b = Split(a(i-1), "---")
  8.        
  9.         c = c+1
  10.        
  11.         Call 子程序()
  12. Next

  13. e = Dialog.MsgBox("完成",0)


  14. Sub 子程序()

  15.        
  16.         Tap 436, 133
  17.         Delay 500
  18.         Tap 436, 133
  19.         Delay 300
  20.         InputText b(0)
  21.         Delay 300
  22.         KeyPress "Tab"
  23.         Delay 300
  24.         InputText b(1)
  25.         Delay 300
  26.         Tap 232, 252
  27.         Delay 1000
  28.        

  29.         FindPic 0, 0, 0, 0, "Attachment:s1.png", "000000", 0, 0.9, intX, intY

  30. If intX > -1 And intY > -1 Then



  31.         Tap intX, intY


  32.         Delay 5000
  33.        
  34.         Tap 50, 690
  35.         Delay 300
  36.         Tap 50, 690
  37.         Delay 300
  38.        
  39.         Do
  40.        
  41.                 FindPic 0, 0, 0, 0, "Attachment:s2.png", "000000", 0, 0.9, intX, intY
  42.                
  43.                 If intX > -1 And intY > -1 Then
  44.                
  45.                 Tap intX, intY
  46.                 Exit Do
  47.                 End If
  48.                
  49.                 FindPic 0, 0, 0, 0, "Attachment:po.png", "000000", 0, 0.9, intG, intH
  50.                
  51.                 If intG > -1 And intH > -1 Then
  52.                
  53.                 KeyPress "Back"
  54.                
  55.                 End If
  56.                
  57.         Loop
  58.        
  59.        
  60.         Delay 1000
  61.        
  62.         Tap 22, 90
  63.         Delay 300
  64.         Tap 22, 90
  65.         Delay 300
  66.         Tap 22, 90
  67.         Delay 800
  68.        
  69.         Swipe 230, 750, 230, 70, 1000
  70.        
  71.         Delay 500
  72.        
  73.   //Tap 230, 730
  74.   
  75.           Do
  76.        
  77.                 FindPic 0, 0, 0, 0, "Attachment:s3.png", "000000", 0, 0.9, intE, intF
  78.                
  79.                 If intE > -1 And intF > -1 Then
  80.                
  81.                 Tap intE, intF
  82.                 Exit Do
  83.                 End If
  84.                
  85.         Loop

  86.        
  87.         Delay 500
  88.        
  89.         Do
  90.        
  91.                 FindPic 0, 0, 0, 0, "Attachment:s4.png", "000000", 0, 0.9, intX, intY
  92.                
  93.                 If intX > -1 And intY > -1 Then
  94.                
  95.                 Tap intX, intY
  96.                 Exit Do
  97.                 End If
  98.                
  99.         Loop
  100.        
  101.         Delay 1000
  102.        
  103.        
  104.         g = b(0) & "---" & b(1) & "\n"

  105.        
  106.         File.Append("/storage/emulated/0/baidu/ps.txt", g)
  107.        
  108.        
  109.         Delay 1000
  110.        
  111.         Do
  112.        
  113.                 FindPic 0, 0, 0, 0, "Attachment:手机登录.png", "000000", 0, 0.9, intX, intY
  114.                
  115.                 If intX > -1 And intY > -1 Then
  116.                
  117.                 Tap intX, intY
  118.                 Exit Do
  119.                 End If
  120.                
  121.                 FindPic 0, 0, 0, 0, "Attachment:ss1.png", "000000", 0, 0.9, intA, intB
  122.                
  123.                 If intA > -1 And intB > -1 Then
  124.                
  125.                 KeyPress "Back"
  126.                 Delay 500
  127.                
  128.                 End If
  129.                
  130.                 FindPic 0, 0, 0, 0, "Attachment:s1.png", "000000", 0, 0.9, intC, intD
  131.                
  132.                 If intC > -1 And intD > -1 Then
  133.                
  134.                 Tap intC, intD
  135.        
  136.                 Tap 50, 690
  137.                 Delay 300
  138.                 Tap 50, 690
  139.                 Delay 300
  140.                
  141.                 Do
  142.                
  143.                         FindPic 0, 0, 0, 0, "Attachment:s2.png", "000000", 0, 0.9, intX, intY
  144.                        
  145.                         If intX > -1 And intY > -1 Then
  146.                        
  147.                         Tap intX, intY
  148.                         Exit Do
  149.                         End If
  150.                        
  151.                         FindPic 0, 0, 0, 0, "Attachment:po.png", "000000", 0, 0.9, intG, intH
  152.                
  153.                         If intG > -1 And intH > -1 Then
  154.                
  155.                         KeyPress "Back"
  156.                        
  157.                         End If
  158.                        
  159.                 Loop
  160.                
  161.                
  162.                 Delay 1000
  163.                
  164.                 Tap 22, 90
  165.                 Delay 300
  166.                 Tap 22, 90
  167.                 Delay 300
  168.                 Tap 22, 90
  169.                 Delay 800
  170.                
  171.                 Swipe 230, 750, 230, 70, 1000
  172.                
  173.                 Delay 500
  174.                
  175.         Do
  176.        
  177.                 FindPic 0, 0, 0, 0, "Attachment:s3.png", "000000", 0, 0.9, intE, intF
  178.                
  179.                 If intE > -1 And intF > -1 Then
  180.                
  181.                 Tap intE, intF
  182.                 Exit Do
  183.                 End If
  184.                
  185.         Loop
  186.        
  187.                
  188.                 Delay 500
  189.                
  190.                 Do
  191.                
  192.                         FindPic 0, 0, 0, 0, "Attachment:s4.png", "000000", 0, 0.9, intX, intY
  193.                        
  194.                         If intX > -1 And intY > -1 Then
  195.                        
  196.                         Tap intX, intY
  197.                         Exit Do
  198.                         End If
  199.                        
  200.                 Loop
  201.                
  202.                 Delay 1000
  203.                
  204.                
  205.                 g = b(0) & "---" & b(1) & "\n"
  206.        
  207.                
  208.                 File.Append("/storage/emulated/0/baidu/ps.txt", g)
  209.                
  210.                
  211.                 Delay 1000
  212.                
  213.                 Exit Do
  214.                 End If
  215.        
  216.        
  217.         Loop

  218. End If


  219. If c > 9 Then
  220.        
  221.         Delay 1000
  222.         KeyPress "Back"

  223.        
  224.         Delay 1500
  225.        
  226.         Do
  227.        
  228.                 FindPic 0, 0, 0, 0, "Attachment:手机登录.png", "000000", 0, 0.9, intX, intY
  229.                
  230.                 If intX > -1 And intY > -1 Then
  231.                
  232.                 Tap intX, intY
  233.                 Exit Do
  234.                 End If
  235.                
  236.                 FindPic 0, 0, 0, 0, "Attachment:ss1.png", "000000", 0, 0.9, intA, intB
  237.                
  238.                 If intA > -1 And intB > -1 Then
  239.                
  240.                 KeyPress "Back"
  241.                 Delay 500
  242.                
  243.                 End If
  244.                
  245.                 FindPic 0, 0, 0, 0, "Attachment:s1.png", "000000", 0, 0.9, intC, intD
  246.                
  247.                 If intC > -1 And intD > -1 Then
  248.                
  249.                 Tap intC, intD
  250.        
  251.                 Tap 50, 690
  252.                 Delay 300
  253.                 Tap 50, 690
  254.                 Delay 300
  255.                
  256.                 Do
  257.                
  258.                         FindPic 0, 0, 0, 0, "Attachment:s2.png", "000000", 0, 0.9, intX, intY
  259.                        
  260.                         If intX > -1 And intY > -1 Then
  261.                        
  262.                         Tap intX, intY
  263.                         Exit Do
  264.                         End If
  265.                        
  266.                         FindPic 0, 0, 0, 0, "Attachment:po.png", "000000", 0, 0.9, intG, intH
  267.                
  268.                     If intG > -1 And intH > -1 Then
  269.                
  270.                     KeyPress "Back"
  271.                     
  272.                         End If
  273.                        
  274.                 Loop
  275.                
  276.                
  277.                 Delay 1000
  278.                
  279.                 Tap 22, 90
  280.                 Delay 300
  281.                 Tap 22, 90
  282.                 Delay 300
  283.                 Tap 22, 90
  284.                 Delay 800
  285.                
  286.                 Swipe 230, 750, 230, 70, 1000
  287.                
  288.                 Delay 500
  289.                
  290.                 Do
  291.        
  292.                 FindPic 0, 0, 0, 0, "Attachment:s3.png", "000000", 0, 0.9, intE, intF
  293.                
  294.                 If intE > -1 And intF > -1 Then
  295.                
  296.                 Tap intE, intF
  297.                 Exit Do
  298.                 End If
  299.                
  300.             Loop
  301.        
  302.                
  303.                 Delay 500
  304.                
  305.                 Do
  306.                
  307.                         FindPic 0, 0, 0, 0, "Attachment:s4.png", "000000", 0, 0.9, intX, intY
  308.                        
  309.                         If intX > -1 And intY > -1 Then
  310.                        
  311.                         Tap intX, intY
  312.                         Exit Do
  313.                         End If
  314.                        
  315.                 Loop
  316.                
  317.                 Delay 1000
  318.                
  319.                
  320.                 g = b(0) & "---" & b(1) & "\n"
  321.        
  322.                
  323.                 File.Append("/storage/emulated/0/baidu/ps.txt", g)
  324.                
  325.                
  326.                 Delay 1000
  327.                
  328.                 Exit Do
  329.                 End If
  330.                
  331.         Loop
  332.        
  333.         Delay 1000
  334.        
  335.         c = 0
  336.        
  337.        
  338. End If

  339.         FindPic 0, 0, 0, 0, "Attachment:ss2.png", "000000", 0, 0.9, intX, intY
  340.                        
  341.         If intX > -1 And intY > -1 Then
  342.        
  343.         KeyPress "Back"
  344.         Delay 500
  345.         KeyPress "Back"
  346.                        
  347.         End If

  348. End Sub
复制代码
--------------------------------------------------------


快捷键
  1. Function 复制()
  2.         KeyDown "Menu"
  3.         KeyPress "C"
  4.         KeyUp "Menu"
  5. End Function

  6. Function 粘贴()
  7.         KeyDown "Menu"
  8.         KeyPress "V"
  9.         KeyUp "Menu"
  10. End Function

  11. Function 全选()
  12.         KeyDown "Menu"
  13.         KeyPress "A"
  14.         KeyUp "Menu"
  15. End Function

  16. Dim s
  17. Call 复制()
  18. s = Sys.GetClipText()
复制代码

返回列表