Giter Site home page Giter Site logo

jd脚本优化 about jd_tb_auto HOT 6 CLOSED

czj2369 avatar czj2369 commented on August 16, 2024
jd脚本优化

from jd_tb_auto.

Comments (6)

czj2369 avatar czj2369 commented on August 16, 2024

首先感谢您的tb脚本,非常好用!

关于京东脚本,会卡在城城分现金邀请,可以考虑使用我的基于层次关系的定位方法的代码:https://github.com/BlademasterQAQ/jd20211111 。 (我写的获取层次关系的autojs代码:https://github.com/BlademasterQAQ/autojs_layerLocate

自动跳转到任务页面我不太会,靠大佬了,最好能刷小程序和金融。

我是用了类似你这种方法去定位“去完成”这个控件,定位的关键字在这里进行配置,
var TASK_LIST = ["浏览并关注", "浏览8s", "累计浏览", "参与城城", "浏览可得", "去首页浮层进入"];
那个参与城城我有去做逻辑,但好像不太行

感谢你的建议~

from jd_tb_auto.

BlademasterQAQ avatar BlademasterQAQ commented on August 16, 2024

首先感谢您的tb脚本,非常好用!
关于京东脚本,会卡在城城分现金邀请,可以考虑使用我的基于层次关系的定位方法的代码:https://github.com/BlademasterQAQ/jd20211111 。 (我写的获取层次关系的autojs代码:https://github.com/BlademasterQAQ/autojs_layerLocate
自动跳转到任务页面我不太会,靠大佬了,最好能刷小程序和金融。

我是用了类似你这种方法去定位“去完成”这个控件,定位的关键字在这里进行配置, var TASK_LIST = ["浏览并关注", "浏览8s", "累计浏览", "参与城城", "浏览可得", "去首页浮层进入"]; 那个参与城城我有去做逻辑,但好像不太行

感谢你的建议~

了解,我会删除 城城 看看是否正常。
我是看您的代码中使用了绝对坐标来click(没有细看),就想是否通过层次定位到控件来click会更好。

感谢回复~

from jd_tb_auto.

BlademasterQAQ avatar BlademasterQAQ commented on August 16, 2024

任务结束后,可以加下面的代码自动领宝箱:(但是我不会关悬浮窗。。。)

// 领宝箱
var reward = textContains("累计任务奖励").findOne();
for(var i = 1;i <= 3;i++)
{
    reward.parent().child(2).child(i).child(0).click();
    sleep(1000);
}

然后建议在打开任务前,点击 领取汪汪币 或 后存满 ,自动把🐶币领了。

from jd_tb_auto.

BlademasterQAQ avatar BlademasterQAQ commented on August 16, 2024

顺便想问下您用的是什么工具开发,我是用vs code的插件写的,但是autojs的布局范围分析貌似不好用,比如打开任务页面的话,其显示的仍然是背景的UI布局,但是代码又是能看到任务页面的布局的。
您有什么好的工具吗?

from jd_tb_auto.

czj2369 avatar czj2369 commented on August 16, 2024

顺便想问下您用的是什么工具开发,我是用vs code的插件写的,但是autojs的布局范围分析貌似不好用,比如打开任务页面的话,其显示的仍然是背景的UI布局,但是代码又是能看到任务页面的布局的。 您有什么好的工具吗?

我也是用vc,autojs的版本是4.1.0,第一版的时候也是你这个问题,然后做成了坐标点击,后来通用性不行,然后我用模拟器测试的时候发现可以使用布局范围分析,就把大部分之前坐标点击的改成了找控件点击,你可以搞个模拟器试试。

from jd_tb_auto.

BlademasterQAQ avatar BlademasterQAQ commented on August 16, 2024

顺便想问下您用的是什么工具开发,我是用vs code的插件写的,但是autojs的布局范围分析貌似不好用,比如打开任务页面的话,其显示的仍然是背景的UI布局,但是代码又是能看到任务页面的布局的。 您有什么好的工具吗?

我也是用vc,autojs的版本是4.1.0,第一版的时候也是你这个问题,然后做成了坐标点击,后来通用性不行,然后我用模拟器测试的时候发现可以使用布局范围分析,就把大部分之前坐标点击的改成了找控件点击,你可以搞个模拟器试试。

谢谢您提供的信息~

from jd_tb_auto.

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.