process.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. {
  86. "type": "img-center-point-location",
  87. "inVars": ["点赞按钮_未点赞.png"],
  88. "outVars": ["{send-btn-pos}"]
  89. },
  90. {
  91. "type": "adb",
  92. "method": "click",
  93. "inVars": ["{send-btn-pos}"]
  94. }
  95. ]
  96. },
  97. {
  98. "type": "random",
  99. "inVars": [5, 12],
  100. "outVars": ["{back-duration}"]
  101. },
  102. {
  103. "type": "delay",
  104. "value": "{{back-duration}}s"
  105. },
  106. {
  107. "type": "adb",
  108. "method": "keyevent",
  109. "inVars": ["4"],
  110. "outVars": []
  111. }
  112. ]
  113. }
  114. ]
  115. }