process.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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. {
  17. "type": "while",
  18. "condition": "1",
  19. "body":
  20. [
  21. {
  22. "type": "random",
  23. "inVars": ["1", "3"],
  24. "outVars": ["{swipeCount}"]
  25. },
  26. {
  27. "type": "schedule",
  28. "condition":
  29. {
  30. "interval": "7s",
  31. "repeat": "{swipeCount}"
  32. },
  33. "interval":
  34. [
  35. {
  36. "type": "adb",
  37. "method": "swipe",
  38. "inVars": ["up-down"],
  39. "outVars": []
  40. }
  41. ]
  42. },
  43. {
  44. "type": "random",
  45. "inVars": ["200", "780"],
  46. "outVars": ["{clickX}"]
  47. },
  48. {
  49. "type": "random",
  50. "inVars": ["400", "2000"],
  51. "outVars": ["{clickY}"]
  52. },
  53. {
  54. "type": "set",
  55. "variable": "{random-click-pos}",
  56. "value": "{clickX},{clickY}"
  57. },
  58. {
  59. "type": "adb",
  60. "method": "click",
  61. "inVars": ["{random-click-pos}"]
  62. },
  63. {
  64. "type": "random",
  65. "inVars": [10, 2000],
  66. "outVars": ["{stay-duration}"]
  67. },
  68. {
  69. "type": "try",
  70. "try":
  71. [
  72. {
  73. "type": "img-center-point-location",
  74. "inVars": ["视频点赞.png"],
  75. "outVars": ["{send-btn-pos}"]
  76. }
  77. ],
  78. "success":
  79. [
  80. {
  81. "type": "random",
  82. "inVars": ["2", "10"],
  83. "outVars": ["{swipeCount}"]
  84. },
  85. {
  86. "type": "for",
  87. "times": "{swipeCount}",
  88. "variable": "{i}",
  89. "body":
  90. [
  91. {
  92. "type": "random",
  93. "inVars": [5,30],
  94. "outVars": ["{stay-duration}"]
  95. },
  96. {
  97. "type": "delay",
  98. "value": "{{stay-duration}}s"
  99. },
  100. {
  101. "type": "adb",
  102. "method": "swipe",
  103. "inVars": ["down-up"],
  104. "outVars": []
  105. },
  106. {
  107. "type": "if",
  108. "condition": "{stay-duration} > 25",
  109. "ture":
  110. [
  111. {
  112. "type": "random",
  113. "inVars": [0, 1],
  114. "outVars": ["{b-like-click}"]
  115. },
  116. {
  117. "type": "if",
  118. "condition": "{b-like-click} == 1",
  119. "ture":
  120. [
  121. {
  122. "type": "adb",
  123. "method": "click",
  124. "inVars": ["{send-btn-pos}"]
  125. }
  126. ]
  127. }
  128. ]
  129. }
  130. ]
  131. }
  132. ],
  133. "fail":
  134. [
  135. {
  136. "type": "echo",
  137. "value": "点赞图标匹配失败"
  138. }
  139. ]
  140. },
  141. {
  142. "type": "adb",
  143. "method": "keyevent",
  144. "inVars": ["4"],
  145. "outVars": []
  146. }
  147. ]
  148. }
  149. ]
  150. }