function getlucky() {
log("开始红包")
let gz = boundsFindCon("关注", device.width * 0.35, device.height * 0.35, device.width * 0.65, device.height * 0.65, -1)
let jz = boundsFindCon("价值", device.width * 0.35, device.height * 0.5, device.width * 0.65, device.height * 0.75, -1)
if (gz == null) {
log("No gz")
return;
}
let tapx = 0
let tapy = 0
let mh = boundsFindCon("秒后", device.width * 0.3, device.height * 0.4, device.width * 0.7, device.height * 0.7, -1)
if (mh != null) {
tapx = mh.bounds().centerX()
tapy = mh.bounds().centerY()
for (let j = 0; j < 100; j++) {
log("红包时间未到,等待:", j)
sleep(6000)
timeChange()
mh = boundsFindCon("秒后", device.width * 0.3, device.height * 0.4, device.width * 0.7, device.height * 0.7, -1)
if (mh == null) {
hbnumber = hbnumber + 1
log("即将点击红包")
sleep(50 * 1000)
最新飞翔福袋脚本源码分享(Autojs完整源码)
最新推荐文章于 2025-06-12 21:55:02 发布