1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > 最新飞翔福袋脚本源码分享(Autojs完整源码)

最新飞翔福袋脚本源码分享(Autojs完整源码)

时间:2021-01-18 11:01:31

相关推荐

最新飞翔福袋脚本源码分享(Autojs完整源码)

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 = 0let tapy = 0let 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 + 1log("即将点击红包")sleep(50 * 1000)log("开始点击红包", tapx, tapy)for (let j = 0; j < 75; j++) {click(tapx + random(0, 3), tapy + random(0, 3))sleep(100)if (j % 8 == 0) {log("点击中:", j)}if (j > 30) {gz = boundsFindCon("关注", device.width * 0.35, device.height * 0.35, device.width * 0.65, device.height * 0.65, -1)if (gz == null) {break;}}}break;}}} else {if (timeSec > 14) {tapx = device.width * 0.5tapy = gz.bounds().centerY() + 0.0868 * device.heightlog("即将点击红包", timeSec)for (let j = 0; j < timeSec - 17; j++) {sleep(1000)}hbnumber = hbnumber + 1log("开始点击红包", tapx, tapy)for (let j = 0; j < 75; j++) {click(tapx + random(0, 3), tapy + random(0, 3))sleep(100)if (j % 8 == 0) {log("点击中:", j)}if (j > 30) {gz = boundsFindCon("关注", device.width * 0.35, device.height * 0.35, device.width * 0.65, device.height * 0.65, -1)if (gz == null) {break;}}}} else {log("红包时间太短")//back()//sleep(1000)}}var 中红包 = textContains('已抢到').findOnce();if (中红包 != null) {hboknumber = hboknumber + 1;}back()}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。