Giter Site home page Giter Site logo

Comments (6)

thumike avatar thumike commented on July 18, 2024 1

因为蚂蚁森林这两天改了控件属性值,以前能量球desc属性值为待收取时间或者 *g,现在都变成了收集能量,所以反而更加容易定位了,不会与右上角自己的能量值混在一起。早上没收到自己的能量,起床后发现没有收到自己的能量,检测结束的时间也推迟了两分钟了,想想原来是点到右上角自己的能量值里面去了。而且在只有一个能量球的情况下,会误算作两个,所以检测结束时间也会变长。
"还有x分钟才能收取哦"是没法避免的,因为跟你的检测设置时间有关系,在检测时间内就会一直持续点击。改版之后貌似不能直接获取自己能量球的待收取时间,我想到的是通过点击,触发"还有x分钟才能收取哦"提示,然后用toast监听获取信息,不过这样有点麻烦😂

from autojs.

thumike avatar thumike commented on July 18, 2024 1

1.是的,改成descMatches(/^(收集能量)$/)就不会点进种树界面了。
2.现在要停顿一下才收取是由于259行加了一个sleep(2000),但是不建议去掉,不然进入好友能量界面后点击过快,导致收不到能量。
3.不要在意这个细节了,只要进入好友界面,先检测有无保护罩,没有就会把所有能量球全部点击一遍。速度很快😃

from autojs.

e1399579 avatar e1399579 commented on July 18, 2024 1

1,2已经修复。3请更新安装包,https://pan.baidu.com/s/1i6KBbnv

from autojs.

SuperMonster003 avatar SuperMonster003 commented on July 18, 2024

😄
很棒
第3点解决了不点击能量球的问题 但还是觉得有些奇怪 会出现"还有x分钟才能收取哦"这样的提示
另外第3点代码中的两个等于符号 第一个是半角 而第二个是全角的

另外第1点 之前版本作者写的是
forest.find(descMatches(/.*?\d{2}:\d{2}/)).forEach(function (o)

from autojs.

SuperMonster003 avatar SuperMonster003 commented on July 18, 2024
  1. 意思是说 进入蚂蚁森林后 右上角自己头像右侧的能量值 也会被看作是一个能量球吗 因为我发现默认情况下如果当前时间在设置的检测时间范围内 且自己的总能量球数量为0时 脚本是会点击右上角进入种树界面的
     而且在只有一个能量球的情况下,会误算作两个,所以检测结束时间也会变长。
     -- from thumike @ Apr 13, 2018, 7:20 PM GMT+8
  1. 检测时间变长 没错 确实不如以前快了 以前进入好友森林之后马上就会收取能量 现在要停顿一下才收取
  2. "还有x分钟才能收取哦"
    我说的不是当前时间在设置时间范围内时收取自己能量的提示 而是收取好友能量时 例如有一个可收取能量球 (如262g) 同时 还有一个倒计时能量球 (如01:34) 这个时候脚本会点击可收取能量球 (262g) 但还会点击一下那个倒计时能量球 (01:34) 提示说"还有1时34分才能收取哦"

from autojs.

SuperMonster003 avatar SuperMonster003 commented on July 18, 2024

@thumike
👌 😃

from autojs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.