process.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. {
  2. "name": "RedNoteBrowsingAndThumbsUp",
  3. "description": "小红书随机浏览和点赞",
  4. "variables": {
  5. "page-index":0,
  6. "up-or-down":0,
  7. "swipe-count":0,
  8. "click-x":0,
  9. "click-y":0,
  10. "random-click-pos":"",
  11. "stay-duration":0,
  12. "send-btn-pos": ""
  13. },
  14. "execute": [
  15. {
  16. "type": "schedule",
  17. "condition":
  18. {
  19. "interval": "1s",
  20. "repeat": -1
  21. },
  22. "interval":
  23. [
  24. {
  25. "type": "random",
  26. "inVars": ["1", "3"],
  27. "outVars": ["{swipeCount}"]
  28. },
  29. {
  30. "type": "schedule",
  31. "condition":
  32. {
  33. "interval": "1s",
  34. "repeat": "{swipeCount}"
  35. },
  36. "interval":
  37. [
  38. {
  39. "type": "adb",
  40. "method": "swipe",
  41. "inVars": ["down-up"],
  42. "outVars": []
  43. }
  44. ]
  45. },
  46. {
  47. "type": "random",
  48. "inVars": ["200", "880"],
  49. "outVars": ["{clickX}"]
  50. },
  51. {
  52. "type": "random",
  53. "inVars": ["400", "2000"],
  54. "outVars": ["{clickY}"]
  55. },
  56. {
  57. "type": "set",
  58. "variable": "{random-click-pos}",
  59. "value": "{clickX},{clickY}"
  60. },
  61. {
  62. "type": "adb",
  63. "method": "click",
  64. "inVars": ["{random-click-pos}"]
  65. },
  66. {
  67. "type": "random",
  68. "inVars": [10, 2000],
  69. "outVars": ["{stay-duration}"]
  70. },
  71. {
  72. "type": "delay",
  73. "value": "{{stay-duration}}m"
  74. },
  75. {
  76. "type": "random",
  77. "inVars": [0, 1],
  78. "outVars": ["{b-like-click}"]
  79. },
  80. {
  81. "type": "if",
  82. "condition": "{b-like-click} == 1",
  83. "ture": [
  84. {
  85. "type": "image-center-location",
  86. "inVars": ["点赞按钮_未点赞.png"],
  87. "outVars": ["{send-btn-pos}"]
  88. },
  89. {
  90. "type": "while",
  91. "condition": "{send-btn-pos}==\"\"",
  92. "ture":
  93. [
  94. ]
  95. },
  96. {
  97. "type": "adb",
  98. "method": "click",
  99. "inVars": ["{send-btn-pos}"]
  100. }
  101. ],
  102. "false": [
  103. {
  104. }
  105. ]
  106. },
  107. {
  108. "type": "random",
  109. "inVars": [5, 12],
  110. "outVars": ["{back-duration}"]
  111. },
  112. {
  113. "type": "delay",
  114. "value": "{{back-duration}}s"
  115. },
  116. {
  117. "type": "adb",
  118. "method": "keyevent",
  119. "inVars": ["4"],
  120. "outVars": []
  121. }
  122. ]
  123. }
  124. ]
  125. }