Code Monkey home page Code Monkey logo

Comments (8)

Yiyiyimu avatar Yiyiyimu commented on July 24, 2024

在查到内容加上“你收取TA”之后不再报错了,但进入好友界面不收能量直接退出

from ant-forest.

TonyJiangWJ avatar TonyJiangWJ commented on July 24, 2024

你下载一下这个项目AutoScriptBase
在好友首页运行一下 unit/获取当前页面的布局信息.js ,然后截图一下弹出的内容
我这里还是老版本的,所以不清楚你现在的问题。

from ant-forest.

TonyJiangWJ avatar TonyJiangWJ commented on July 24, 2024

另外master分支 test/能量球检测.js 也可以试一下,看看日志,不过如果因为森林更新问题的话可能帮助不大

from ant-forest.

TonyJiangWJ avatar TonyJiangWJ commented on July 24, 2024

支付宝更新了获取不到控件信息,可以尝试直接模拟点击全屏收能量; 代码参考如下 具体看情况微调;
我这里控件还是没问题的,等到时候我的也挂了我开发一下图像识别的。
BaseScanner.js line:66

  // 收取能量
  this.collectEnergy = function (isHelp) {
    // let ballCheckContainer = _widgetUtils.widgetGetAll(_config.collectable_energy_ball_content, isHelp ? 200 : 1000, true)
    // if (ballCheckContainer !== null) {
    //   debugInfo('能量球存在')
    //   let that = this
    //   ballCheckContainer.target
    //     .forEach(function (energy_ball) {
    //       that.collectBallEnergy(energy_ball, ballCheckContainer.isDesc)
    //     })
    // } else {
    //   debugInfo('无能量球可收取')
    // }
   // 循环点击1080P 分辨率下的区域(起始[150, 400]-结束[900, 800]),其他分辨率根据实际情况微调
    for (let x = 150; x <= 900; x += 100) {
      for (let y = 400; y <= 800; y += 100) {
        automator.click(x, y)
        sleep(20)
      }
    }
  }

from ant-forest.

Yiyiyimu avatar Yiyiyimu commented on July 24, 2024

多谢多谢,全屏点击没问题的。

获取当前页面的布局信息的内容好像复制不出来,也没有存在什么文件里,我看了一下好像确实没有能量球的信息(几g/可收取之类的字),如果需要的话我把截图发给你。

能量球检测报错:

日志工具类不存在。。。。。
TypeError: 无法从undefined读取属性“collectable_energy_ball_content”(能量球检测.js#5)

from ant-forest.

Ehustein avatar Ehustein commented on July 24, 2024

我的今天也被更新了,按你的方法抓了一下布局,似乎整个大树和能量球那块被整体打包起来了,找不到浇水弹幕,只能找到你收取TA

-id:[com.alipay.mobile.nebulaintegration:id/nebulax_root_view]bounds:[0, 0, 1080, 2340]
--id:[com.alipay.mobile.nebulaintegration:id/splash_container]bounds:[0, 0, 1080, 2340]
--id:[com.alipay.mobile.nebulaintegration:id/fragment_container]bounds:[0, 0, 1080, 2340]
----id:[com.alipay.mobile.nebula:id/h5_web_content]bounds:[0, 0, 1080, 2340]
-----id:[com.alipay.mobile.nebula:id/h5_pc_container]bounds:[0, 0, 1080, 2340]
---------id:[J_app_outter]bounds:[0, 0, 1081, 2340]
----------id:[J_af_home]bounds:[0, 52, 1081, 1620]
-----------id:[J_treeContainer]bounds:[0, 52, 1081, 1620]
-----------id:[J_home_panel]bounds:[0, 52, 1081, 1620]
--------------[desc]content:[我的大树养成记录]bounds:[842, 287, 89, 89]
---------------id:[J_userEnergy][desc]content:[24105g]bounds:[940, 309, 119, 55]
------------id:[J_tree_dialog_wrap]bounds:[539, 707, 542, 965]
-----------[desc]content:[ ]bounds:[0, 1641, 1081, 699]
----------------[desc]content:[ ]bounds:[42, 1702, 996, 227]
-----------------[desc]content:[ ]bounds:[355, 1699, 15, 16]
-----------------[desc]content:[ ]bounds:[710, 1699, 15, 16]
------------------[desc]content:[TA收取你]bounds:[235, 1760, 147, 49]
------------------[desc]content:[0g]bounds:[235, 1806, 147, 92]
-----------------[desc]content:[ ]bounds:[437, 1736, 206, 171]
------------------[desc]content:[ ]bounds:[842, 1727, 67, 64]
-----------------[desc]content:[你收取TA]bounds:[698, 1760, 147, 49]
-----------------[desc]content:[54g]bounds:[698, 1806, 147, 92]
----------------[desc]content:[ ]bounds:[1078, 1702, 3, 227]
-----------------[desc]content:[ ]bounds:[1078, 1699, 3, 16]
-----------------[desc]content:[ ]bounds:[1078, 1699, 3, 16]
------------------[desc]content:[TA给你助力]bounds:[1078, 1760, 3, 49]
------------------[desc]content:[0g]bounds:[1078, 1806, 3, 92]
-----------------[desc]content:[ ]bounds:[1078, 1736, 3, 171]
------------------[desc]content:[ ]bounds:[1078, 1727, 3, 64]
-----------------[desc]content:[你给TA助力]bounds:[1078, 1760, 3, 49]
-----------------[desc]content:[235g]bounds:[1078, 1806, 3, 92]

from ant-forest.

YinHang119 avatar YinHang119 commented on July 24, 2024

多谢多谢,全屏点击没问题的。

获取当前页面的布局信息的内容好像复制不出来,也没有存在什么文件里,我看了一下好像确实没有能量球的信息(几g/可收取之类的字),如果需要的话我把截图发给你。

能量球检测报错:

日志工具类不存在。。。。。
TypeError: 无法从undefined读取属性“collectable_energy_ball_content”(能量球检测.js#5)

老哥也问一下,你是按照博主的方法改的吗?我也按照这个方法改了,还是不行。求教一下

from ant-forest.

TonyJiangWJ avatar TonyJiangWJ commented on July 24, 2024

已更新代码,请执行 update/检测更新.js 进行更新

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.