日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 >

音麦,音柚,探遇漂流瓶自动打招呼回复源码(Auto.js)

發(fā)布時(shí)間:2023/12/3 34 生活家
生活随笔 收集整理的這篇文章主要介紹了 音麦,音柚,探遇漂流瓶自动打招呼回复源码(Auto.js) 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

?今天分享一個(gè)音麥,音柚,探遇漂流瓶自動(dòng)打招呼回復(fù)源碼。代碼是用Auto.js開發(fā)的,可以自動(dòng)打招呼,回復(fù)。可在上面二次開發(fā)。

"ui";
var myapp = {}
myapp.ppdelayMin = "10"  //匹配延時(shí)最小值
myapp.ppdelayMax = "15"  //匹配延時(shí)最大值
myapp.delayMin = "3"     //撿瓶子延時(shí)最小值
myapp.delayMax = "5"     //撿瓶子延時(shí)最大值
myapp.jpzfrequency = "5"  //竊語匹配次數(shù)
myapp.dmppnumber = "5"    //逗萌匹配次數(shù)
myapp.dmjpznumber = "5"   //逗萌撿瓶子次數(shù)
myapp.xmppnumber = "5"    //星夢匹配次數(shù)
myapp.xmjpznumber = "5"   //星夢撿瓶子次數(shù)
myapp.syppnumber = "5"    //隨緣廣場匹配次數(shù)
myapp.syjpznumber = "5"   //隨緣扔瓶子次數(shù) 
myapp.syrpznumber = "5"   //隨緣撿瓶子次數(shù)
myapp.xialasy = "3"
var 撿瓶子路徑 = "/sdcard/撿瓶子話術(shù).txt"
var 扔瓶子路徑 = "/sdcard/扔瓶子話術(shù).txt"
var 匹配話術(shù)路徑 = "/sdcard/話術(shù)庫.txt"
var 話術(shù)路徑 = "/sdcard/話術(shù).txt"
var 瓶子話術(shù)組, 話術(shù)組, 匹配話術(shù)組, 扔瓶子話術(shù)組
var rjbh = "1"; //軟件編號(hào)
var sjb, 驗(yàn)證結(jié)果, 時(shí)間
myapp.存儲(chǔ)標(biāo)識(shí) = "MIKE1990"
ui.layout(<ScrollView ><vertical><appbar><toolbar id="toolbar" title="智能機(jī)器人" /></appbar><card w="*" h="auto" margin="10 5" cardCornerRadius="2dp" cardElevation="1dp" gravity="center_vertical"><vertical padding="18 8" h="auto"><linear><Switch id="autoService" text="無障礙服務(wù):" checked="{{auto.service != null}}" w="auto" textStyle="bold" /><Switch id="overlayService" text="懸浮窗權(quán)限" checked="{{auto.service != null}}" padding="8 8 8 8" textSize="15sp" marginLeft="20" /></linear></vertical><View bg="#E51400" h="*" w="5" /></card><card w="*" h="auto" margin="10 5" cardCornerRadius="2dp"cardElevation="1dp" gravity="center_vertical"><vertical padding="18 8" h="auto"><linear><text text="激活碼:" textcolor="black" w="auto" /><input id="SDKl" inputType="number" text="" w="*" inputType="text" /></linear></vertical><View bg="#ff5722" h="*" w="5" /></card><card w="*" h="auto" margin="10 5" cardCornerRadius="2dp" cardElevation="1dp" gravity="center_vertical"><vertical padding="18 8" h="auto"><linear><text text="平臺(tái)任務(wù)選擇:" textColor="black" w="auto" /><spinner id="mainMenu" entries="隨緣漂流瓶|星夢漂流瓶|竊語漂流瓶|逗萌漂流瓶" spinnerMode="dialog" /></linear></vertical><View bg="#ff5722" h="*" w="5" /></card><card w="*" h="auto" margin="10 5" cardCornerRadius="2dp"cardElevation="1dp" gravity="center_vertical"><vertical padding="18 8" h="auto"><linear><text text="隨緣漂流瓶功能設(shè)置:" textcolor="black" w="auto" /></linear><linear><text text="廣場匹配次數(shù):" textcolor="black" w="auto" /><input id="syppnumber" inputType="number" text="" w="50" /><text text="次" textcolor="black" w="auto" /></linear><linear><text text="撿瓶子次數(shù):" textcolor="black" w="auto" /><input id="syrpznumber" inputType="number" text="" w="50" /><text text="次" textcolor="black" w="auto" /></linear><linear><text text="扔瓶子次數(shù):" textcolor="black" w="auto" /><input id="syjpznumber" inputType="number" text="" w="50" /><text text="次" textcolor="black" w="auto" /></linear></vertical><View bg="#ff5722" h="*" w="5" /></card><card w="*" h="auto" margin="10 5" cardCornerRadius="2dp"cardElevation="1dp" gravity="center_vertical"><vertical padding="18 8" h="auto"><linear><text text="星夢漂流瓶功能設(shè)置:" textcolor="black" w="auto" /></linear><linear><text text="星夢匹配次數(shù):" textcolor="black" w="auto" /><input id="xmppnumber" inputType="number" text="" w="50" /><text text="次" textcolor="black" w="auto" /></linear><linear><text text="撿瓶子次數(shù):" textcolor="black" w="auto" /><input id="xmjpznumber" inputType="number" text="" w="50" /><text text="次" textcolor="black" w="auto" /></linear></vertical><View bg="#ff5722" h="*" w="5" /></card><card w="*" h="auto" margin="10 5" cardCornerRadius="2dp"cardElevation="1dp" gravity="center_vertical"><vertical padding="18 8" h="auto"><linear><text text="竊語漂流瓶功能設(shè)置:" textcolor="black" w="auto" /></linear><linear><text text="撿瓶子次數(shù):" textcolor="black" w="auto" /><input id="jpzfrequency" inputType="number" text="" w="50" /><text text="次" textcolor="black" w="auto" /></linear></vertical><View bg="#ff5722" h="*" w="5" /></card><card w="*" h="auto" margin="10 5" cardCornerRadius="2dp"cardElevation="1dp" gravity="center_vertical"><vertical padding="18 8" h="auto"><linear><text text="逗萌漂流瓶功能設(shè)置:" textcolor="black" w="auto" /></linear><linear><text text="逗萌匹配次數(shù):" textcolor="black" w="auto" /><input id="dmppnumber" inputType="number" text="" w="50" /><text text="次" textcolor="black" w="auto" /></linear><linear><text text="撿瓶子次數(shù):" textcolor="black" w="auto" /><input id="dmjpznumber" inputType="number" text="" w="50" /><text text="次" textcolor="black" w="auto" /></linear></vertical><View bg="#ff5722" h="*" w="5" /></card><card w="*" h="auto" margin="10 5" cardCornerRadius="2dp"cardElevation="1dp" gravity="center_vertical"><vertical padding="18 8" h="auto"><linear><text text="全局功能設(shè)置:" textcolor="black" w="auto" /></linear><linear><text text="每次撿瓶子或匹配間隔" textcolor="black" w="auto" /><input id="delayMin" inputType="number" text="" w="40" /><text text="秒至" textcolor="black" w="auto" /><input id="delayMax" inputType="number" text="" w="40" /><text text="秒" textcolor="black" w="auto" /></linear><linear><text text="回復(fù)完成間隔" textcolor="black" w="auto" /><input id="ppdelayMin" inputType="number" text="" w="40" /><text text="秒至" textcolor="black" w="auto" /><input id="ppdelayMax" inputType="number" text="" w="40" /><text text="秒繼續(xù)任務(wù)" textcolor="black" w="auto" /></linear></vertical><View bg="#ff5722" h="*" w="5" /></card><text text="注意事項(xiàng):" w="*" h="auto" textSize="12sp" textColor="red" margin="15 5" /><text text="啟動(dòng)應(yīng)用前先開啟無障礙服務(wù),否則機(jī)器人不會(huì)運(yùn)行,如果無障礙無法開啟或無法啟動(dòng)請(qǐng)重啟手機(jī)后重試,注意需要安卓7.0系統(tǒng)以上版本才能運(yùn)行 !" w="*" h="auto" textSize="12sp" textColor="#ff5722" margin="15 5" /><button style="Widget.AppCompat.Button.Colored" margin="5" id="start">開始執(zhí)行</button></vertical></ScrollView>
);讀取界面配置(true)
//開關(guān)的單擊事件
ui.autoService.on("check", function (checked) {// 用戶勾選無障礙服務(wù)的選項(xiàng)時(shí),跳轉(zhuǎn)到頁面讓用戶去開啟if (checked && auto.service == null) {app.startActivity({action: "android.settings.ACCESSIBILITY_SETTINGS"});}if (!checked && auto.service != null) {auto.service.disableSelf();}
});ui.overlayService.on("check", function (checked) {// 用戶勾選無障礙服務(wù)的選項(xiàng)時(shí),跳轉(zhuǎn)到頁面讓用戶去開啟if (checked) {try {int = app.startActivity({packageName: "com.android.settings",className: "com.android.settings.Settings$AppDrawOverlaySettingsActivity",data: "package:" + context.getPackageName().toString()});} catch (err) {app.openAppSetting(getPackageName("智能機(jī)器人"));}toast("請(qǐng)打開懸浮窗開關(guān)");}if (!checked && auto.service != null) {//auto.service.disableSelf();toast("已關(guān)閉懸浮窗權(quán)限");}
});// 當(dāng)用戶回到本界面時(shí),resume事件會(huì)被觸發(fā)
ui.emitter.on("resume", function () {// 此時(shí)根據(jù)無障礙服務(wù)的開啟情況,同步開關(guān)的狀態(tài)ui.autoService.checked = auto.service != null;
});ui.start.on("click", () => {   //按鈕單擊事件 哪個(gè)按鈕 start 需要修改這個(gè)ID保存界面配置()          //先讀取配置讀取界面配置(false)if (auto.service == null) {toastLog("請(qǐng)先開啟無障礙服務(wù)!");return};if (!floaty.checkPermission()) {floaty.requestPermission()return}// 屏蔽音量鍵調(diào)節(jié)聲音events.setKeyInterceptionEnabled("volume_up", true);//啟用按鍵監(jiān)聽events.observeKey();//監(jiān)聽音量鍵按下events.onKeyDown("volume_up", () => {toastLog('按音量鍵停止');exit();   //停止、退出腳本});threads.start(function () {       //線程啟動(dòng)主程序console.show()Main()});threads.start(function () {       //線程啟動(dòng)主程序到期時(shí)間檢測()});
});function Main() {sjb = "qieyu2020,qieyu2020," + myapp.SDKl;驗(yàn)證結(jié)果 = jhmyz(sjb, myapp.SDKl, rjbh, rjgxbh, jhmgxbh)if (parseInt(驗(yàn)證結(jié)果) == 1) {時(shí)間 = dqsj(sjb)toastLog("到期時(shí)間:" + 時(shí)間)} else {exit()}if (!files.exists(匹配話術(shù)路徑)) { log("話術(shù)庫txt文本不存在軟件停止"); exit() }if (!files.exists(話術(shù)路徑)) { log("話術(shù)txt文本不存在軟件停止"); exit() }if (!files.exists(撿瓶子路徑)) { log("撿瓶子話術(shù)txt文本不存在軟件停止"); exit() }if (!files.exists(扔瓶子路徑)) { log("扔瓶子話術(shù)txt文本不存在軟件停止"); exit() }file = open(匹配話術(shù)路徑); 匹配話術(shù)組 = file.readlines(); file.close()file = open(話術(shù)路徑); 話術(shù)組 = file.readlines(); file.close()file = open(撿瓶子路徑); 瓶子話術(shù)組 = file.readlines(); file.close()file = open(扔瓶子路徑); 扔瓶子話術(shù)組 = file.readlines(); file.close()home()sleep(1000)if (myapp.xialasy == "0") {toastLog("當(dāng)前執(zhí)行任務(wù) 隨緣漂流瓶...")if (!app.launchApp("隨緣漂流瓶")) {toastLog("啟動(dòng)隨緣漂流瓶失敗!請(qǐng)手動(dòng)啟動(dòng)!")}text("首頁").waitFor();sleep(1000)while (true) {隨緣廣場()var x = random(0, 1)if (x == 0) {隨緣撿瓶子()} else {隨緣扔瓶子()}隨緣消息回復(fù)()myapp.ppdelay = random(parseInt(myapp.ppdelayMin), parseInt(myapp.ppdelayMax))for (var i = myapp.ppdelay; i > 0; i--) {log("任務(wù)等待" + i + "秒")sleep(1000)}}} else if (myapp.xialasy == "1") {toastLog("當(dāng)前執(zhí)行任務(wù) 星夢漂流瓶...")if (!app.launchApp("星夢漂流瓶")) {toastLog("啟動(dòng)星夢漂流瓶失敗!請(qǐng)手動(dòng)啟動(dòng)!")}text("首頁").waitFor();sleep(1000)while (true) {星夢匹配TA()星夢撿瓶子()星夢消息回復(fù)()myapp.ppdelay = random(parseInt(myapp.ppdelayMin), parseInt(myapp.ppdelayMax))for (var i = myapp.ppdelay; i > 0; i--) {log("任務(wù)等待" + i + "秒")sleep(1000)}}} else if (myapp.xialasy == "2") {toastLog("當(dāng)前執(zhí)行任務(wù) 竊語漂流瓶...")if (!app.launchApp("竊語漂流瓶")) {toastLog("啟動(dòng)竊語漂流瓶失敗!請(qǐng)手動(dòng)啟動(dòng)!")}text("首頁").waitFor();sleep(1000)while (true) {竊語撿瓶子()竊語消息回復(fù)()myapp.ppdelay = random(parseInt(myapp.ppdelayMin), parseInt(myapp.ppdelayMax))for (var i = myapp.ppdelay; i > 0; i--) {log("任務(wù)等待" + i + "秒")sleep(1000)}}} else if (myapp.xialasy == "3") {toastLog("當(dāng)前執(zhí)行任務(wù) 逗萌漂流瓶...")if (!app.launchApp("逗萌漂流瓶")) {toastLog("啟動(dòng)逗萌漂流瓶失敗!請(qǐng)手動(dòng)啟動(dòng)!")}text("首頁").waitFor();sleep(1000)while (true) {逗萌匹配TA()逗萌撿瓶子()逗萌消息回復(fù)()myapp.ppdelay = random(parseInt(myapp.ppdelayMin), parseInt(myapp.ppdelayMax))for (var i = myapp.ppdelay; i > 0; i--) {log("任務(wù)等待" + i + "秒")sleep(1000)}}}
}
function 隨緣廣場() {log("隨緣廣場任務(wù)")click("相遇")sleep(500)click("相遇")sleep(1000)click("廣場")sleep(500)click("廣場")sleep(1000)for (var h = 0; h < parseInt(myapp.syppnumber); h++) {clickN("com.sy.bottle:id/imgYes")sleep(1000)log("點(diǎn)擊喜歡" + h + "次")myapp.delay = random(parseInt(myapp.delayMin), parseInt(myapp.delayMax))for (var i = myapp.delay; i > 0; i--) {log("下次喜歡" + i + "秒")sleep(1000)}}log("廣場任務(wù)完成")
}
function 隨緣撿瓶子() {log("隨緣撿瓶子任務(wù)")var xx = 0click("相遇")sleep(500)click("相遇")sleep(1000)click(" 漂流瓶 ")sleep(500)click(" 漂流瓶 ")sleep(1000)myapp.ysyjpznumber = 0while (true) {if (xx == 20) { home(); sleep(1000); app.launchApp("隨緣漂流瓶"); sleep(2000); break }if (id("com.sy.bottle:id/chat_message_input").findOnce()) {xx = 0log("開始發(fā)送消息")if (id("com.sy.bottle:id/msg_body_tv").findOnce()) {log("該用戶已經(jīng)回復(fù)過了")返回函數(shù)("com.sy.bottle:id/imgRefresh", "隨緣漂流瓶")} else {x = random(0, 瓶子話術(shù)組.length - 1)var 話術(shù) = 瓶子話術(shù)組[x]log("我要回復(fù)的話術(shù):" + 話術(shù))sleep(1000)setText(話術(shù))sleep(1000)clickN("發(fā)送")sleep(1000)myapp.ysyjpznumber++返回函數(shù)("com.sy.bottle:id/imgRefresh", "隨緣漂流瓶")if (myapp.ysyjpznumber == parseInt(myapp.syjpznumber)) {log("撿瓶子次數(shù)到了")return} else {log("當(dāng)前已撿瓶子次數(shù)" + myapp.ysyjpznumber)myapp.delay = random(parseInt(myapp.delayMin), parseInt(myapp.delayMax))for (var i = myapp.delay; i > 0; i--) {log("撿瓶子等待" + i + "秒")sleep(1000)}}}} else if (text("回應(yīng)TA").findOnce()) {log("點(diǎn)擊回應(yīng)TA")click("回應(yīng)TA")} else if (id("com.sy.bottle:id/imgRefresh").findOnce()) {log("開始隨機(jī)撿瓶子")var shuaxin = id("com.sy.bottle:id/imgRefresh").findOnce()if (shuaxin != null) { shuaxin.click() }sleep(1000)var arr = idContains("com.sy.bottle:id/bottle").find()if (arr.length > 0) {var x = random(0, arr.length - 1)arr[x].click()}} else {xx++}sleep(1000)}
}
function 隨緣扔瓶子() {log("隨緣扔瓶子任務(wù)")var xx = 0click("相遇")sleep(500)click("相遇")sleep(1000)click(" 漂流瓶 ")sleep(500)click(" 漂流瓶 ")sleep(1000)myapp.ysyrpznumber = 0while (true) {if (xx == 20) { home(); sleep(1000); app.launchApp("隨緣漂流瓶"); sleep(2000); break }if (text("扔出去").findOnce()) {xx = 0log("開始扔出瓶子")x = random(0, 扔瓶子話術(shù)組.length - 1)var 話術(shù) = 扔瓶子話術(shù)組[x]log("話術(shù):" + 話術(shù))sleep(1000)setText(話術(shù))sleep(1000)clickN("扔出去")sleep(1000)if (text("扔出瓶子").findOne(3000)) {myapp.ysyrpznumber++if (myapp.ysyrpznumber == parseInt(myapp.syrpznumber)) {log("扔瓶子次數(shù)到了")return} else {log("當(dāng)前已扔瓶子次數(shù)" + myapp.ysyrpznumber)myapp.delay = random(parseInt(myapp.delayMin), parseInt(myapp.delayMax))for (var i = myapp.delay; i > 0; i--) {log("扔瓶子等待" + i + "秒")sleep(1000)}}}} else if (text("扔出瓶子").findOnce()) {log("點(diǎn)擊扔出瓶子")click("扔出瓶子")} else {xx++}sleep(1000)}
}
function 隨緣消息回復(fù)() {log("開始隨緣檢測消息回復(fù)")click("消息")sleep(500)click("消息")sleep(1000)var 下滑 = true, 上滑 = falsevar x = 0while (true) {if (x == 20) { home(); sleep(1000); app.launchApp("隨緣漂流瓶"); sleep(2000); x = 0 }if (id("com.sy.bottle:id/chat_message_input").findOnce()) {log("開始消息匹配")消息匹配("com.sy.bottle:id/msg_body_tv")返回函數(shù)("com.sy.bottle:id/conversation_title", "隨緣漂流瓶")} else if (textContains("封停使用").id("com.sy.bottle:id/msg_body_tv").findOnce()) {back()sleep(1000)} else if (id("com.sy.bottle:id/conversation_title").findOnce()) {var xMsg = id("com.sy.bottle:id/conversation_unread").findOnce()if (xMsg != null) {log("找到找新消息")xMsg.parent().parent().click()} else {if (下滑) {if (滑動(dòng)("下滑", "com.sy.bottle:id/conversationList", "com.sy.bottle:id/conversation_title")) {下滑 = false上滑 = true}}if (上滑) {if (滑動(dòng)("上滑", "com.sy.bottle:id/conversationList", "com.sy.bottle:id/conversation_title")) {log("消息回復(fù)完畢")return}}}} else {x++}sleep(1000)}
}
function 星夢匹配TA() {log("開始星夢匹配任務(wù)..")var xx = 0, y = 0myapp.yxmppnumber = 0while (true) {if (xx == 20) { home(); sleep(1000); app.launchApp("星夢漂流瓶"); sleep(2000); break }if (id("com.xm.bottle:id/chat_message_input").findOnce()) {xx = 0y = 0log("開始發(fā)送消息")if (id("com.xm.bottle:id/msg_body_tv").findOnce()) {log("該匹配已經(jīng)回復(fù)過了")返回函數(shù)("com.xm.bottle:id/iv_icon", "星夢漂流瓶")} else {x = random(0, 瓶子話術(shù)組.length - 1)var 話術(shù) = 瓶子話術(shù)組[x]log("我要回復(fù)的話術(shù):" + 話術(shù))sleep(1000)setText(話術(shù))sleep(1000)clickN("發(fā)送")sleep(1000)back()sleep(1000)myapp.yxmppnumber++返回函數(shù)("com.xm.bottle:id/iv_icon", "星夢漂流瓶")if (myapp.yxmppnumber == parseInt(myapp.xmppnumber)) {log("匹配次數(shù)到了")return} else {log("當(dāng)前已匹配次數(shù)" + myapp.yxmppnumber)myapp.delay = random(parseInt(myapp.delayMin), parseInt(myapp.delayMax))for (var i = myapp.delay; i > 0; i--) {log("匹配等待" + i + "秒")sleep(1000)}}}} else if (text("去遇見").findOnce()) {log("匹配成功去遇見")clickN("去遇見")} else if (text("暫未匹配到人").findOnce()) {log("點(diǎn)擊繼續(xù)匹配")clickN("繼續(xù)匹配")sleep(1000)y = 0myapp.yxmppnumber++if (myapp.yxmppnumber == parseInt(myapp.xmppnumber)) {log("匹配次數(shù)到了")返回函數(shù)("com.xm.bottle:id/iv_icon", "星夢漂流瓶")return} else {log("當(dāng)前已匹配次數(shù)" + myapp.yxmppnumber)}} else if (text("正在匹配中").findOnce()) {log("正在匹配中....")y++if (y >= 35 && text("取消匹配").findOnce()) {log("匹配超時(shí)取消匹配")clickN("取消匹配")sleep(1000)y = 0myapp.yxmppnumber++if (myapp.yxmppnumber == parseInt(myapp.xmppnumber)) {log("匹配次數(shù)到了")返回函數(shù)("com.xm.bottle:id/iv_icon", "星夢漂流瓶")return} else {log("當(dāng)前已匹配次數(shù)" + myapp.yxmppnumber)}}} else if (id("com.xm.bottle:id/iv_icon").findOnce()) {log("點(diǎn)擊快速匹配")console.hide()sleep(1000)clickN("com.xm.bottle:id/iv_icon")console.show()} else if (text("清空").findOnce() || text("我的動(dòng)態(tài)").findOnce() || text("附近動(dòng)態(tài)").findOnce() || text("推薦").findOnce()) {log("點(diǎn)擊發(fā)現(xiàn)")clickN("發(fā)現(xiàn)")} else if (text("取消").findOnce()) {log("點(diǎn)擊取消")clickN("取消")} else if (id("com.xm.bottle:id/iv_close").findOnce()) {log("點(diǎn)擊取消")clickN("com.xm.bottle:id/iv_close")} else {xx++}sleep(1000)}
}
function 星夢撿瓶子() {log("開始星夢撿瓶子任務(wù)..")var xx = 0myapp.yxmjpznumber = 0while (true) {if (xx == 20) { home(); sleep(1000); app.launchApp("星夢漂流瓶"); sleep(2000); break }if (id("com.xm.bottle:id/chat_message_input").findOnce()) {xx = 0log("開始發(fā)送消息")if (id("com.xm.bottle:id/msg_body_tv").findOnce()) {log("該用戶已經(jīng)回復(fù)過了")返回函數(shù)("刷新", "星夢漂流瓶")} else {x = random(0, 瓶子話術(shù)組.length - 1)var 話術(shù) = 瓶子話術(shù)組[x]log("我要回復(fù)的話術(shù):" + 話術(shù))sleep(1000)setText(話術(shù))sleep(1000)clickN("發(fā)送")sleep(1000)myapp.yxmjpznumber++if (myapp.yxmjpznumber == parseInt(myapp.xmjpznumber)) {log("撿瓶子次數(shù)到了")返回函數(shù)("com.xm.bottle:id/iv_icon", "星夢漂流瓶")return} else {返回函數(shù)("刷新", "星夢漂流瓶")log("當(dāng)前已撿瓶子次數(shù)" + myapp.yxmjpznumber)myapp.delay = random(parseInt(myapp.delayMin), parseInt(myapp.delayMax))for (var i = myapp.delay; i > 0; i--) {log("撿瓶子等待" + i + "秒")sleep(1000)}}}} else if (text("回復(fù)").findOnce()) {log("點(diǎn)擊回復(fù)")clickN("回復(fù)")} else if (text("刷新").findOnce()) {log("開始隨機(jī)撿瓶子")var arr = idContains("com.xm.bottle:id/iv_avatar_").find()if (arr.length > 0) {var x = random(0, arr.length - 1)var rect = arr[x].bounds()if (parseInt(rect.centerY()) > 0) {console.hide()sleep(1000)click(rect.centerX(), rect.centerY())console.show()}} else {clickN("刷新")sleep(1000)myapp.yxmjpznumber++if (myapp.yxmjpznumber == parseInt(myapp.xmjpznumber)) {log("撿瓶子次數(shù)到了")返回函數(shù)("com.xm.bottle:id/iv_icon", "星夢漂流瓶")return}}} else if (text("漂流瓶,來自內(nèi)心的聲音…").findOnce()) {log("點(diǎn)擊漂流瓶,來自內(nèi)心的聲音…")clickN("漂流瓶,來自內(nèi)心的聲音…")} else if (text("清空").findOnce() || text("我的動(dòng)態(tài)").findOnce() || text("附近動(dòng)態(tài)").findOnce() || text("推薦").findOnce()) {log("點(diǎn)擊發(fā)現(xiàn)")clickN("發(fā)現(xiàn)")} else if (text("取消").findOnce()) {log("點(diǎn)擊取消")clickN("取消")} else {xx++}sleep(1000)}
}

總結(jié)

以上是生活随笔為你收集整理的音麦,音柚,探遇漂流瓶自动打招呼回复源码(Auto.js)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。