Guest User

Untitled

a guest
May 25th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. // 从TXT文件中读取店铺名到数组
  2. Dim shopNameFilePath="/sdcard/shopName.txt", shopNameArray
  3. shopNameArray = File.ReadLines(shopNameFilePath)
  4.  
  5. // 截图保存路径
  6. Dim snapShotPath = "/sdcard/shopPhoneDir/"
  7.  
  8.  
  9. // 循环输入店铺名
  10. For Each element In shopNameArray
  11. Dim color
  12.  
  13. // 点击输入框
  14. Tap 341, 98
  15. Delay 1000
  16. // 先删除输入框中原有的内容
  17. Touch 662, 1118, 3000
  18. // 然后输入店铺名
  19. InputText element
  20. Tap 658, 90
  21. Delay 1000
  22. // 检测网络是否加载好了店铺
  23. color = CmpColor(608, 388, "0055ff", 1.0)
  24. // 如果没加载好,循环等待
  25. While color <> 0
  26. Delay 1000
  27. color = CmpColor(608, 388, "0055ff", 1.0)
  28. Wend
  29. // 点击店铺头像进入店铺
  30. Tap 82, 393
  31. Delay 2000
  32. Tap 57, 251
  33. Delay 2000
  34. SnapShot snapShotPath & element & ".jpg", 156, 860, 354, 911
  35.  
  36. // 点击返回
  37. KeyPress "Back"
  38. Delay 1000
  39. KeyPress "Back"
  40. Delay 1000
  41. KeyPress "Back"
  42. Delay 1000
  43. Next
Add Comment
Please, Sign In to add comment