Comments (8)
在查到内容加上“你收取TA”之后不再报错了,但进入好友界面不收能量直接退出
from ant-forest.
你下载一下这个项目AutoScriptBase
在好友首页运行一下 unit/获取当前页面的布局信息.js
,然后截图一下弹出的内容
我这里还是老版本的,所以不清楚你现在的问题。
from ant-forest.
另外master分支 test/能量球检测.js
也可以试一下,看看日志,不过如果因为森林更新问题的话可能帮助不大
from ant-forest.
支付宝更新了获取不到控件信息,可以尝试直接模拟点击全屏收能量; 代码参考如下 具体看情况微调;
我这里控件还是没问题的,等到时候我的也挂了我开发一下图像识别的。
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.
多谢多谢,全屏点击没问题的。
获取当前页面的布局信息的内容好像复制不出来,也没有存在什么文件里,我看了一下好像确实没有能量球的信息(几g/可收取之类的字),如果需要的话我把截图发给你。
能量球检测报错:
日志工具类不存在。。。。。
TypeError: 无法从undefined读取属性“collectable_energy_ball_content”(能量球检测.js#5)
from ant-forest.
我的今天也被更新了,按你的方法抓了一下布局,似乎整个大树和能量球那块被整体打包起来了,找不到浇水
和弹幕
,只能找到你收取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.
多谢多谢,全屏点击没问题的。
获取当前页面的布局信息的内容好像复制不出来,也没有存在什么文件里,我看了一下好像确实没有能量球的信息(几g/可收取之类的字),如果需要的话我把截图发给你。
能量球检测报错:
日志工具类不存在。。。。。 TypeError: 无法从undefined读取属性“collectable_energy_ball_content”(能量球检测.js#5)
老哥也问一下,你是按照博主的方法改的吗?我也按照这个方法改了,还是不行。求教一下
from ant-forest.
已更新代码,请执行 update/检测更新.js
进行更新
from ant-forest.
Related Issues (20)
- 一加手机待机一晚上后获取键盘控件失败 HOT 1
- Android13 支持吗? HOT 1
- 能否提供一个安卓5(32位)可以用的autojs modify或困鱼? HOT 1
- 神奇海洋点击垃圾无反应 HOT 9
- 华为p50 pro手机在鸿蒙3.0系统下无法有效解锁 HOT 1
- 使用GitHub Actions刷步数
- 求更新网商银行----绿色经营 HOT 3
- 三星s20升级安装安卓13后自动解锁失败 HOT 1
- 请问是把图案解锁的方式移除了么? HOT 5
- 无法收取能量球,提示找到能量球[] HOT 2
- 定时功能失效 HOT 1
- 查找浇水按钮的问题 HOT 1
- 执行完小号能量雨后,点击首页开始,还是会执行小号能量雨 HOT 1
- 希望增加一个小号收能量再逛一逛的脚本,谢谢! HOT 1
- 解锁不起作用,除info.log HOT 2
- 循环切换小号为大号浇水时出现预期之外点击
- 申请截图权限的时候闪退 HOT 15
- lineage OS 解锁异常 HOT 2
- autojs 修改版 currentActivity() HOT 2
- 新建了一个免费论坛,可以前往注册并发起提问或者和他人讨论 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ant-forest.