找回密码
  注册[Register]
查看: 1271|回复: 4

双十二淘宝自动浏览autojs脚本源码

[复制链接]
发表于 2019-12-1 12:17 | 显示全部楼层 |阅读模式
禁止求评分、诱导评分、互刷评分、互刷悬赏值,违规者封号处理。
禁止发布推广、邀请码、邀请链接、二维码或者有利益相关的任何推广行为。
所有非原创软件请发布在【精品软件区】,发帖必须按照本版块版规格式发帖。

今天淘宝更新了双12的活动
双十一时候用的脚本「去逛店」 「去浏览」 按钮获取不到了
改成了通过textContain「浏览」获取,并用正则表达式判断任务是否完成还是否需要重复浏览
在能量中心开始运行,运行完毕需要自行停止脚本
第一次发自己写的东西,大家给加加分吧_(:3 」∠)_


  1. var height = device.height;
  2. var width = device.width;
  3.      
  4. if (text("签到").exists()) {        
  5.     text("签到").findOne().click();        
  6.     sleep(1600);        
  7.     toast("签到成功")   
  8. }   
  9. sleep(1500);  

  10. while (textContains("去浏览").exists()) {        
  11.     toast("存在去浏览");
  12.     textContains("去浏览").find().forEach(function(o) {        
  13.         text_str = o.text()
  14.         text_str = text_str.match(/\d+\/\d+/g).join()
  15.         click_cnt = parseInt(text_str.match(/\d+/g));
  16.         goal_cnt = parseInt(text_str.match(/\/\d+/g).join().replace("/", ""));
  17.         log(click_cnt, goal_cnt)
  18.         if (click_cnt != goal_cnt) {
  19.             toast("找到了");
  20.             o.click();        
  21.             sleep(1500);        
  22.             swipe(width / 2, height - 500, width / 2, 0, 500);        
  23.             sleep(2500);        
  24.             swipe(width / 2, height - 500, width / 2, 0, 500);        
  25.             sleep(10000);        
  26.             swipe(width / 2, height - 500, width / 2, 0, 500);        
  27.             sleep(8000);        
  28.             back();        
  29.             sleep(1500);
  30.         }
  31.     })   
  32. }   

  33. while (textContains("去搜索").exists()) {        
  34.     toast("存在去搜索");
  35.     textContains("去搜索").find().forEach(function(o) {        
  36.         text_str = o.text()
  37.         text_str = text_str.match(/\d+\/\d+/g).join()
  38.         click_cnt = parseInt(text_str.match(/\d+/g));
  39.         goal_cnt = parseInt(text_str.match(/\/\d+/g).join().replace("/", ""));
  40.         log(click_cnt, goal_cnt)
  41.         if (click_cnt != goal_cnt) {
  42.             toast("找到了");
  43.             o.click();        
  44.             sleep(1500);        
  45.             swipe(width / 2, height - 500, width / 2, 0, 500);        
  46.             sleep(2500);        
  47.             swipe(width / 2, height - 500, width / 2, 0, 500);        
  48.             sleep(10000);        
  49.             swipe(width / 2, height - 500, width / 2, 0, 500);        
  50.             sleep(8000);        
  51.             back();        
  52.             sleep(1500);
  53.         }
  54.     })   
  55. }   
  56. toast("请在能量中心开始运行,需要自行开始和停止脚本");
复制代码


如何回报帮助你解决问题的坛友,一个好办法就是给对方加【热心值】和【牛币】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
发表于 2019-12-1 12:18 | 显示全部楼层
6666666666
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【热心值】和【牛币】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 有用 没用

使用道具 举报

发表于 2019-12-1 13:04 | 显示全部楼层
好的,非常感谢
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【热心值】和【牛币】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 有用 没用

使用道具 举报

发表于 2019-12-1 13:57 | 显示全部楼层
谢谢大佬
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【热心值】和【牛币】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 有用 没用

使用道具 举报

发表于 2019-12-1 14:55 | 显示全部楼层
谢谢分享
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【热心值】和【牛币】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 有用 没用

使用道具 举报

您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

RSS订阅|手机版|小黑屋|广告投放|大牛论坛

GMT+8, 2024-6-2 06:14 , Processed in 0.029352 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表