process.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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. "b-like-click": 0
  14. },
  15. "execute": [
  16. {
  17. "type": "while",
  18. "condition": "1",
  19. "body": [
  20. {
  21. "type": "random",
  22. "inVars": [
  23. "1",
  24. "3"
  25. ],
  26. "outVars": [
  27. "{swipe-count}"
  28. ]
  29. },
  30. {
  31. "type": "schedule",
  32. "condition": {
  33. "interval": "7s",
  34. "repeat": "{swipe-count}"
  35. },
  36. "interval": [
  37. {
  38. "type": "adb",
  39. "method": "swipe",
  40. "inVars": [
  41. "up-down"
  42. ],
  43. "outVars": []
  44. }
  45. ]
  46. },
  47. {
  48. "type": "random",
  49. "inVars": [
  50. "200",
  51. "780"
  52. ],
  53. "outVars": [
  54. "{click-x}"
  55. ]
  56. },
  57. {
  58. "type": "random",
  59. "inVars": [
  60. "400",
  61. "1500"
  62. ],
  63. "outVars": [
  64. "{click-y}"
  65. ]
  66. },
  67. {
  68. "type": "set",
  69. "variable": "{random-click-pos}",
  70. "value": "{click-x},{click-y}"
  71. },
  72. {
  73. "type": "adb",
  74. "method": "click",
  75. "inVars": [
  76. "{random-click-pos}"
  77. ]
  78. },
  79. {
  80. "type": "random",
  81. "inVars": [
  82. 10,
  83. 2000
  84. ],
  85. "outVars": [
  86. "{stay-duration}"
  87. ]
  88. },
  89. {
  90. "type": "try",
  91. "try": [
  92. {
  93. "type": "img-center-point-location",
  94. "inVars": [
  95. "视频点赞.png",
  96. [
  97. 0.2,
  98. 1.6
  99. ]
  100. ],
  101. "outVars": [
  102. "{send-btn-pos}"
  103. ]
  104. }
  105. ],
  106. "success": [
  107. {
  108. "type": "random",
  109. "inVars": [
  110. "2",
  111. "10"
  112. ],
  113. "outVars": [
  114. "{swipe-count}"
  115. ]
  116. },
  117. {
  118. "type": "for",
  119. "times": "{swipe-count}",
  120. "variable": "{i}",
  121. "body": [
  122. {
  123. "type": "random",
  124. "inVars": [
  125. 5,
  126. 30
  127. ],
  128. "outVars": [
  129. "{stay-duration}"
  130. ]
  131. },
  132. {
  133. "type": "delay",
  134. "value": "{{stay-duration}}s"
  135. },
  136. {
  137. "type": "adb",
  138. "method": "swipe",
  139. "inVars": [
  140. "down-up"
  141. ],
  142. "outVars": []
  143. },
  144. {
  145. "type": "if",
  146. "condition": "{stay-duration} > 25",
  147. "then": [
  148. {
  149. "type": "random",
  150. "inVars": [
  151. 0,
  152. 1
  153. ],
  154. "outVars": [
  155. "{b-like-click}"
  156. ]
  157. },
  158. {
  159. "type": "if",
  160. "condition": "{b-like-click} == 1",
  161. "then": [
  162. {
  163. "type": "adb",
  164. "method": "click",
  165. "inVars": [
  166. "{send-btn-pos}"
  167. ]
  168. }
  169. ],
  170. "else": []
  171. }
  172. ],
  173. "else": []
  174. }
  175. ]
  176. }
  177. ],
  178. "fail": [
  179. {
  180. "type": "echo",
  181. "inVars": [
  182. "点赞图标匹配失败"
  183. ]
  184. }
  185. ]
  186. },
  187. {
  188. "type": "adb",
  189. "method": "keyevent",
  190. "inVars": [
  191. "4"
  192. ],
  193. "outVars": []
  194. }
  195. ]
  196. }
  197. ]
  198. }