实例源码
"ui";//更多精品源码请访问:https//01jb.cn/var 软件名 = "汉字大英雄"var 包名 = "com.ruiqugames.chinesechar"function md5(string) {var res = java.math.BigInteger(1, java.security.MessageDigest.getInstance("MD5").digest(java.lang.String(string).getBytes())).toString(16);while (res.length < 32) res = "0" + res;return res;};var QQ = "1906507927";log()//log输出一下Q群加密后的md5,然后复制粘贴到下面就行了//这是输出的md5加密//707b60f85e87e6a7e6eb13df0d3690batoast("脚本有任何bug,欢迎反馈")var qq = "1906507927";var xmq = "1906507927";var jlq = "1906507927";ui.layout(<vertical><vertical><text marginTop="10" gravity="center" text="黑妞脚本" textSize="30sp"cardBackgroundColor="#000000"textStyle="bold|italic"/></vertical><linear orientation="horizontal"><Switch id="autoService" text="无障碍服务"textStyle="bold|italic" w = "150" checked="{{auto.service != null}}" padding="8 8 8 8" textSize="15sp"/><Switch id="cs" textSize="11sp" layout_weight="1" textStyle="bold|italic"hint="点击左边按钮转跳到 开启无障碍" gravity="center" w="18" singleLine="true"/><Switch id="xfc" text="悬浮窗服务"textStyle="bold|italic" w = "150" checked="{{auto.service != null}}" padding="8 8 8 8" textSize="15sp"/><Switch id="xfc" textSize="11sp" layout_weight="1" textStyle="bold|italic"hint="点击左边按钮转跳到 开启悬浮窗" gravity="center" w="18" singleLine="true"/></linear><horizontal><text text="识别度:" textColor="#212121" marginLeft="7" w="auto" marginTop="9" textSize="15sp" /><seekbar marginLeft="-15" w="180" id="识别" progress="-10" max="9" marginTop="11" textSize="15sp" /><text id="sb" text="1" textColor="#FFFF0000" w="35" marginTop="9" textSize="15sp" /><text text="率" textColor="#212121" w="30" marginTop="9" textSize="15sp" /></horizontal><horizontal><text text="说明:" textColor="#ed1941"/><TextView id="tv_text" singleLine="true" ellipsize="marquee" focusable="true" text="本脚本为免费脚本!如果你从别的地方购买证明你已上当!点右上角可以加入免费脚本群!" textColor="#ed1941"/></horizontal><text h ="60"text="开始运行"textStyle="bold|italic" textStyle="bold" id="start" gravity="center" w="1080px" margin="0 0 0 0" textColor="#000000" textSize="20sp"/><text h ="60"text="联系作者"textStyle="bold|italic" textStyle="bold" id="lxzz" gravity="center" w="1080px" margin="0 0 0 0" textColor="#000000" textSize="20sp"/><text h ="60"text="加入qq交流群"textStyle="bold|italic" textStyle="bold" id="jrqq" gravity="center" w="1080px" margin="0 0 0 0" textColor="#000000" textSize="20sp"/><text h ="60"text="加入项目禁言发布群"textStyle="bold|italic" textStyle="bold" id="xmq" gravity="center" w="1080px" margin="0 0 0 0" textColor="#000000" textSize="20sp"/><text h ="60"text="下载链接"textStyle="bold|italic" textStyle="bold" id="lx" gravity="center" w="1080px" margin="0 0 0 0" textColor="#000000" textSize="20sp"/><text h ="60"text="软件合集"textStyle="bold|italic" textStyle="bold" id="nm" gravity="center" w="1080px" margin="0 0 0 0" textColor="#000000" textSize="20sp"/><frame height="800" gravity="center"><vertical><vertical><text textStyle="bold|italic"text="脚本说明:" textSize="16sp"/><text textStyle="bold|italic"text="1.运行脚本前先下载软件安装包,先开启无障碍模式,再开启悬浮窗功能找到软件把开关打开,才能点击开启运行,没反应自己调识别率!"/><text textStyle="bold|italic"text="2.无障碍是开启脚本的无障碍"/><text textStyle="bold|italic"text="3.若手机低于安卓7.0则不能运行 请自行卸载"/><text textStyle="bold|italic"text="项目说明:" textSize="16sp"/><text textStyle="bold|italic"text=""/></vertical></vertical></frame></vertical>);ui.tv_text.setSelected(true);storage = storages.create("awtlq")识别率 = storage.get("识别率", 0.8)ui.sb.setText(String(识别率))ui.识别.progress = 识别度返回(识别率)ui.识别.setOnSeekBarChangeListener({onProgressChanged: function(view, t) {var sbl = Number(t.toString())识别率 = 识别度(sbl)storage.put("识别率", 识别率);}})ui.lxzz.click(function() {app.startActivity({action: "android.intent.action.VIEW",data: "mqq://im/chat?chat_type=wpa&version=1&src_type=web&uin=" + QQ,packageName: "com.tencent.mobileqq",})})ui.jrqq.click(function() {app.startActivity({action: "android.intent.action.VIEW",data: "mqqapi://card/show_pslcard?src_type=internal&version=1&uin=" + xmq + "&card_type=group&source=qrcode",packageName: "com.tencent.mobileqq",});})ui.xmq.click(function() {app.startActivity({action: "android.intent.action.VIEW",data: "mqqapi://card/show_pslcard?src_type=internal&version=1&uin=" + jlq + "&card_type=group&source=qrcode",packageName: "com.tencent.mobileqq",});})ui.lx.on("click", () => {toast("打开链接下载")//app.openUrl("http://blquan.com.cn?char_id=101012878&type=0") //前面是app的下载地址toast("点击链接下载")})ui.nm.on("click", () => {toast("打开链接下载")app.openUrl("https://shimo.im/docs/q8xqQqj8DRT6JgYY/") //前面是app的下载地址toast("点击链接下载,全部密码:123")})ui.xfc.click(function() {floaty.requestPermission();})//悬浮窗检测与跳转ui.autoService.on("check", function(checked) {toastLog("找到对应脚本,开启无障碍模式")if (checked && auto.service == null) {app.startActivity({action: "android.settings.ACCESSIBILITY_SETTINGS"});}if (!checked && auto.service != null) {auto.service.disableSelf();}});ui.xfc.on("check", function(checked) {toastLog("点击开关开启悬浮窗权限")console.show();});// 当用户回到本界面时,resume事件会被触发ui.emitter.on("resume", function() {// 此时根据无障碍服务的开启情况,同步开关的状态ui.autoService.checked = auto.service != null;});ui.start.on("click", function() {//程序开始运行之前判断无障碍服务if (auto.service == null) {toast("请开启无障碍服务🤪");return;}if (auto.service == null) {toast("请开启无障碍服务")return;} else {////////////////////////////悬浮窗开关threads.start(function() {夭夭()})}})function md5(str) {return $crypto.digest(str, "MD5")}function 夭夭() {threads.start(function() {//下面是运行代码//请求截图,用找图方法,第一个就要先写的请求截图代码,不然找图没法用if (!requestScreenCapture()) {toast("请求截图失败");exit();}/////////////////////悬浮窗/////////////////////console.show();auto.waitFor()console.info("正在打开汉字大英雄")launchApp("汉字大英雄")toastLog("8秒后运行脚本")// toastLog("如果想运行抽奖功能请手动进入抽奖界面,默认执行自动领气泡红包")sleep(8000)while (true) {if (找图方法1("收下", 识别率, 1, 1)) {} else {找图方法1("气泡红包", 识别率, 1, 1)找图方法1("领取", 识别率, 1, 1)}if (找图方法1("领取1", 识别率, 1, 1)) {} else {找图方法1("平台关闭1", 识别率, 1, 1)}找图方法1("弹窗关闭1", 识别率, 1, 1)找图方法1("平台关闭", 识别率, 1, 1)找图方法1("关闭弹窗3", 识别率, 1, 1)}})threads.start(function() {while (true) {关闭广告()控件判断1("推荐", 0, 0)}})threads.start(function() {while (true) {sleep(3000)控件点击(text, "禁止", "禁止")// 控件点击(text, "跳过", "跳过")控件点击(text, "放弃下载", "放弃下载")控件点击(text, "无法关闭", "无法关闭")控件点击(text, "3元领跑新学期>", "点击然后退出")控件点击(text, " 一键参团", "提高活跃")控件点击(text, "放弃奖励", "放弃下载")控件点击(text, "取消", "取消")控件点击(text, "残忍离开", "残忍离开")}})//更多精品源码请访问:https//01jb.cn/
文章内容有限.完整内容可访问https//01jb.cn/获取
参考文章
- 点击这里[
声明
部分内容来自网络
本教程仅用于学习, 禁止用于其他用途
QQ群
698307198
