Git Product home page Git Product logo

Comments (19)

Cheney93 avatar Cheney93 commented on June 20, 2024 1

@SuperMonster003 不着急,我自己写了一个解锁的脚本!不过是寄生在森林里面😃

from ant-forest.

VergLsm avatar VergLsm commented on June 20, 2024 1

@SuperMonster003 搞定了,谢谢了

from ant-forest.

SuperMonster003 avatar SuperMonster003 commented on June 20, 2024

from ant-forest.

Cheney93 avatar Cheney93 commented on June 20, 2024

感谢大佬!!!

from ant-forest.

VergLsm avatar VergLsm commented on June 20, 2024

提个想法,可以把共用的模块抽出,然后我们可以使用这些模块做自己的程序,或者可以一起来实现一下其它功能

from ant-forest.

SuperMonster003 avatar SuperMonster003 commented on June 20, 2024

@VergLsm 我今天一整天都正在这么做呢
2019-05-17_170056
@Cheney93 答应你的解锁模块今晚可以做出来 但不会特别完善 而且以后还会再重新发布完善后的模块 如果急需 我可以今晚发布 否则还是建议等我分离完大多数模块之后再一起发布 主要看你需求

from ant-forest.

VergLsm avatar VergLsm commented on June 20, 2024

@SuperMonster003 请教个问题,vsc的代码如果直接按F5在设备上运行总是找不到其它模块文件,这个功能的正常使用姿势是怎样的?

from ant-forest.

SuperMonster003 avatar SuperMonster003 commented on June 20, 2024

@VergLsm 传送到VSC上的js文件运行时的cwd()是Auto.js的默认路径 这个路径可以在Auto.js设置里修改 默认是 /脚本/ 或 /Scripts/ 但Pro版本目前还不行 改了也不起作用

from ant-forest.

shinian97 avatar shinian97 commented on June 20, 2024

另外一个脚本就是不支持解锁,需要自己写,但是小白不会啊,所以一直用你的这个。不过现在那个脚本对蚂蚁森林的更新修复好了

from ant-forest.

SuperMonster003 avatar SuperMonster003 commented on June 20, 2024

@guohuatai 解锁模块以后会分离出来 可以单独使用
此项目将于22日重新启动 将会尝试解决目前收集到的所有Bug
另外Nick的项目我看了下 是将一部分选择器的desc相关方法替换成了text相关方法
支付宝更新控件并不是同步更新
比如我的两台设备 到现在都是desc
将全部desc更改为text 弊端就在于不能兼容还没有进行控件变更的设备
text与desc文本转移的问题可能在日后还会复返
另外在其他软件 (比如JD或JD Finance) 都有可能存在此类问题
所以我暂时采用的是动态获取并记忆选择器的方式 (详见代码有关 sel.pickup() 以及 memory() 部分)
感谢支持
😃

from ant-forest.

VergLsm avatar VergLsm commented on June 20, 2024

@SuperMonster003 这种问题有没有可能是因为html渲染的时候随机把文字放在控件的text或desc了
不过反正不是text就是desc,结果是需要一个控件对象
可不可以尝试封装一个方法,text选择为空时则尝试desc选择
不为空时则返回对象

from ant-forest.

SuperMonster003 avatar SuperMonster003 commented on June 20, 2024

@VergLsm sel.pickup() 的核心代码就是先判断desc是否存在 然后再判断text是否存在 一旦发现 本次会话就存储这个值 以后便无需再判断 另外先判断desc还是先text也是可以选的 是否记忆值也是可开闭的

from ant-forest.

VergLsm avatar VergLsm commented on June 20, 2024

@SuperMonster003 可以告诉我怎样关闭使用记忆值吗?我测试一下让他每次都重新获取,看看成功率是否会比现在高

from ant-forest.

SuperMonster003 avatar SuperMonster003 commented on June 20, 2024

from ant-forest.

SuperMonster003 avatar SuperMonster003 commented on June 20, 2024

@Cheney93 抱歉拖了这么久

let unlock_module = new (require("./Modules/MODULE_UNLOCK.js"))();
unlock_module.unlock();

注意模块依赖 所有依赖模块都在 Modules 文件夹内
另外如果需要设置或修改密码 暂时没有图形页面 (以后也不打算写了) 只能通过代码实现

let code = "123456";
let encrypt = new (require("./Modules/MODULE_PWMAP.js"))().pwmapEncrypt;
let storage_unlock = require("./Modules/MODULE_STORAGE.js").create("unlock");
storage_unlock.put("config", {
    unlock_code: encrypt(code),
});

修改 code 的值即可

from ant-forest.

SuperMonster003 avatar SuperMonster003 commented on June 20, 2024

v1.9.5 已深度分离出模块与工具

解锁模块: ./Modules/MODULE_UNLOCK.js
解锁配置工具: ./Tools/Unlock_Config_Tool.js

工具直接运行使用

模块使用方法如下

require("./MODULE_UNLOCK").unlock();

from ant-forest.

phoenixxie0 avatar phoenixxie0 commented on June 20, 2024

最新版的解锁如何调用。使用require("./Modules/MODULE_UNLOCK.js").unlock(); 会出错
23:21:44.906/E: ReferenceError: "$$impeded" is not defined. (file:/storage/emulated/0/Documents/AutoJs/Ant_Forest/Modules/MODULE_UNLOCK.js#316)
ReferenceError: "$$impeded" is not defined.
at waitForAction (file:/storage/emulated/0/Documents/AutoJs/Ant_Forest/Modules/MODULE_UNLOCK.js:316:0)
at getDisplayParams (file:/storage/emulated/0/Documents/AutoJs/Ant_Forest/Modules/MODULE_UNLOCK.js:797:0)
at _exports (file:/storage/emulated/0/Documents/AutoJs/Ant_Forest/Modules/MODULE_UNLOCK.js:66:0)
at file:/storage/emulated/0/Documents/AutoJs/Ant_Forest/Modules/MODULE_UNLOCK.js:19:0
at _load (file:///android_asset/modules/jvm-npm.js:60:0)
at /storage/emulated/0/Documents/AutoJs/Ant_Forest/Auto_Unlock.js:1:0

from ant-forest.

SuperMonster003 avatar SuperMonster003 commented on June 20, 2024

@xseven007
尝试在解锁模块31行添加

!function _insureImpeded() {
    if (typeof $$impeded === "undefined") {
        $$impeded = () => void 0;
    }
}();

from ant-forest.

phoenixxie0 avatar phoenixxie0 commented on June 20, 2024

@SuperMonster003 OK了。很奇怪,覆盖几次才正常。而且新版本好像一直会提示要配置,其实已经配置过了

from ant-forest.

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.