AutoJsPro项目脚本合集(附带全套源码,线程不会的看过来)

话不多说,直接上代码

"ui";

let KeepAliveService = {
  /** 开启 */
  start: function (idStr, nameStr) {
    try {
      idStr = idStr || "";
      let channel_id = idStr + ".foreground";
      let channel_name = nameStr + " 前台服务通知";

      let content_title = nameStr + " 正在运行中";
      let content_text = "此为前台保活,请勿手动移除该通知";

      let ticker = nameStr + "已启动";

      let manager = context.getSystemService(android.app.Service.NOTIFICATION_SERVICE);
      let notification;
      let icon = context.getResources().getIdentifier("ic_3d_rotation_black_48dp", "drawable", context.getPackageName());
      if (device.sdkInt >= 26) {
        let channel = new android.app.NotificationChannel(channel_id, channel_name, android.app.NotificationManager.IMPORTANCE_DEFAULT);
        channel.enableLights(true);
        channel.setLightColor(0xff0000);
        channel.setShowBadge(false);
        manager.createNotificationChannel(channel);
        notification = new android.app.Notification.Builder(context, channel_id).setContentTitle(content_title).setContentText(content_text).setWhen(new Date().getTime()).setSmallIcon(icon).setTicker(ticker).setOngoing(true).build();
      } else {
        notification = new android.app.Notification.Builder(context).setContentTitle(content_title).setContentText(content_text).setWhen(new Date().getTime()).setSmallIcon(icon).setTicker(ticker).build();
      }
      manager.notify(1, notification);
    } catch (error) {
      log("前台保活服务启动失败:" + error);
      log("保活服务启动失败,不影响辅助的正常运行,继续挂机即可.");
    }
  },
  /** 停止 */
  stop: function () {    
    let manager = context.getSystemService(android.app.Service.NOTIFICATION_SERVICE);
    manager.cancelAll();
  },
};





//真实启动
KeepAliveService.start("test", "造雾-脚本合集");


var QQ群1 = "740578431"
var QQ群2 = "1035264291"
var QQ = "1340468168"
var bj1 = "https://z3.ax1x.com/2021/08/30/hJN956.jpg" //壁纸1
var bj2 = "https://z3.ax1x.com/2021/09/04/h2pebR.png" //像
var bj3 = "https://ps.ssl.qhmsg.com/t02df15b2ff095014ed.jpg" //壁纸2
var 软件名 = "造雾-脚本合集"

var storage = storages.create("存储");
importClass(android.view.View);
ui.statusBarColor(colors.TRANSPARENT);

const AllColor = "#000000"
const alpha = 0.7
const resources = context.getResources();
const statusBarHeight = resources.getDimensionPixelSize(resources.getIdentifier('status_bar_height', 'dimen', 'android'));
const scale = resources.getDisplayMetrics().density;

var dp2px = dp => {
    return Math.floor(dp * scale + 0.5);
};
var px2dp = px => {
    return Math.floor(px / scale + 0.5);
};
var SystemUiVisibility = ve => {
    var option = View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | (ve ? View.SYSTEM_UI_FLAG_LAYOUT_STABLE : View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
    activity.getWindow().getDecorView().setSystemUiVisibility(option);
};
var ButtonLayout = function() {
    importClass(android.graphics.Color);
    importClass("androidx.core.graphics.drawable.DrawableCompat");
    util.extend(ButtonLayout, ui.Widget);

    function ButtonLayout() {
        ui.Widget.call(this);
        this.defineAttr("leftDrawable", (view, attr, value, defineSetter) => {
            view.widget.mLeftDrawable = value;
            var lDrawable = context.getResources().getDrawable(getResourceID(value));
            lDrawable.setBounds(0, 0, view.widget.mLeftDrawableSize, view.widget.mLeftDrawableSize);
            let wrappedDrawable = DrawableCompat.wrap(lDrawable);
            DrawableCompat.setTint(wrappedDrawable, Color.parseColor("#FFFFFF"));
            view.setCompoundDrawables(lDrawable, null, null, null);
        });
    };
    ButtonLayout.prototype.mLeftDrawable = null;
    ButtonLayout.prototype.mLeftDrawableSize = dp2px(20);
    ButtonLayout.prototype.render = function() {
        return (
            <TextView
                    
                    bg="?attr/selectableItemBackground"
                    gravity="left|center_vertical"
                    textColor="#FFFFFF"
                    textStyle="normal"
                    typeface="monospace"
                    padding="20 10"
                    drawablePadding="20" />
        );
    };

    function getResourceID(name) {
        var resource = context.getResources();
        return resource.getIdentifier(name, "drawable", context.getPackageName());
    };
    ui.registerWidget("button-layout", ButtonLayout);
    return ButtonLayout;
}();
ui.layout(
    <viewpager
    id="viewpager"
    bg="#9E9E9E"
    >
    /*子页面背景颜色*/
    {/**drawer侧边栏 */}
    <frame>
        <img scaleType="fitStart" src="{{bj3}}"w="1080"alpha="0.6" />
        <relative
        w="*"
        clickable="true"
        >
        
        <relative
        id="drawerToolbar"
        marginTop="10"
        paddingTop="{{statusBarHeight}}px"
        >
        <img
        id="icon"
        w="40"
        h="40"
        margin="20 0"
        scaleType="fitXY"
        circle="true"
        src="{{bj2}}" />
        <text
        id="title"
        layout_toRightOf="icon"
        layout_alignParentTop="true"
        w="auto"
        h="auto"
        text="造雾者"
        textSize="16sp"
        textStyle="bold"
        textColor="#ffffff"
        typeface="monospace" />
        
        <text
        id="subtitle"
        layout_below="title"
        layout_toRightOf="icon"
        w="auto"
        h="auto"
        text="QQ:{{QQ}}"
        textSize="12sp"
        textStyle="bold"
        textColor="#7fffffff"
        typeface="monospace" />
        
    </relative>
    
    <frame
    id="drawerFrame"
    layout_below="drawerToolbar"
    layout_above="drawerHorizontal"
    h="*"
    >
    
    <list
    id="drawerList"
    w="auto"
    h="auto"
    padding="0 20"
    layout_gravity="center_vertical"
    >
    
    <button-layout
    w="*"
    text="{{this.text}}"
    leftDrawable="{{this.drawable}}" />
    
    </list>
    
    </frame>
    
    
    <horizontal
    id="drawerHorizontal"
    paddingBottom="{{statusBarHeight}}px"
    layout_alignParentBottom="true"
    >
    
    <button-layout
    id="settingsBtn"
    text="待添加"
    leftDrawable="ic_settings_black_48dp" />
    
    <View
    bg="#ffffff"
    w="2px"
    h="16"
    layout_gravity="center_vertical" />
    
    <button-layout
    id="logBtn"
    text="退出软件"
    drawablePadding="0" />
    
    </horizontal>
    
    </relative>
    </frame>
    
    //
    //
    //
    //
    
    //
    
    //
    
    
    //
    
    
    
    
    
    
    
    {/**主界面 */}
    <frame>
        <card
        id="card"
        cardElevation="0"
        cardCornerRadius="0"
        cardBackgroundColor="#f6f6f6"
        >
        <img scaleType="fitStart" src="{{bj1}}"w="1080"alpha="0.7" />
        
        
        <vertical >
            
            <toolbar
            w="*"
            h="auto"
            marginTop="10"
            paddingTop="{{statusBarHeight}}px"
            >
            
            <text
            w="*"
            h="auto"
            text="{{软件名}}"
            textSize="21sp"
            textStyle="bold|italic"
            textColor="#E65100"
            
            gravity="center" />
            
            <img
            
            id="kjid"
            w="40"
            h="40"
            margin="20 0"
            scaleType="fitXY"
            circle="true"
            layout_gravity="right"
            src="{{bj2}}" />
            
        </toolbar>
        
        <vertical textSize="100sp" >
            
            
            <card  margin="3 1" cardElevation="0" cardCornerRadius="10" cardBackgroundColor="{{AllColor}}" alpha="{{alpha}}" >
                <card margin="1 1" w="*" cardElevation="0" cardCornerRadius="10" cardBackgroundColor="#161824">
                    <TextView id="tv_text" singleLine="true" ellipsize="marquee" textSize="12" focusable="true"
                    text="本作品仅供学习交流,不得用于任何商业以及非法用途,下载试用后请正确使用,因使用软件造成的使用者以及任何网站的一切损失, 皆由使用者承担。如不接受本条款,请立即删除本软件,如不慎软件被破解,皆由破解者承担一切责任本作品仅供学习交流!请于24小时内自行删除!"
                    textColor="#ffffff" />
                </card>
            </card>//
            
            <card  margin="3 1" cardElevation="0" cardCornerRadius="10" cardBackgroundColor="{{AllColor}}" alpha="{{alpha}}" >
                <card margin="1 1" w="*" cardElevation="0" cardCornerRadius="10" cardBackgroundColor="#161824">
                    <horizontal  h="35" gravity="vertical_center"   >
                        <Switch id="autoService" text="无障碍服务" textColor="#ffffff" w="150" checked="{{auto.service  != null}}" padding="8 8 8 8" textSize="14sp" />
                        <text id="cs" textSize="11sp"  textColor="#ffffff"   layout_weight="1" text="点击左边按钮转跳到 开启无障碍" gravity="center" w="18" singleLine="true" />
                    </horizontal>
                </card>
            </card>
            
            <card  margin="3 1" cardElevation="0" cardCornerRadius="10" cardBackgroundColor="{{AllColor}}" alpha="{{alpha}}" >
                <card margin="1 1" w="*" cardElevation="0" cardCornerRadius="10" cardBackgroundColor="#161824">
                    <horizontal  gravity="vertical_center"   h="35" >
                        <text text="屏幕识别率:" textColor="#ffffff" marginLeft="7" w="auto" marginTop="9" textSize="14sp" />
                        <seekbar marginLeft="-15" w="180" id="识别" progress="-10" max="9" marginTop="11"    textColor="#ffffff"  textSize="14sp" />
                        <text id="sb" text="1" textColor="#ffffff" w="35" marginTop="9" textSize="14sp" />
                        <text text="率" textColor="#ffffff" w="30" marginTop="9" textSize="14sp" />
                    </horizontal>
                </card>
            </card>
            
            <card  margin="3 1" cardElevation="0" cardCornerRadius="10" cardBackgroundColor="{{AllColor}}" alpha="{{alpha}}" >
                <card margin="1 1" w="*" cardElevation="0" cardCornerRadius="10" cardBackgroundColor="#161824">
                    <vertical    h="35" >
                        <text text="开始运行"  id="开始运行"    w="*" h="*"  textColor="#ffffff"  gravity="center"     textSize="14sp" />
                    </vertical>
                </card>
            </card>
            
            <text radius="66dp" gravity="center" text="右滑加入褥羊毛Q群"/>
            <text radius="66dp" gravity="center" text="收徒‖定制脚本‖问题‖请联系作者!"/>
            <card  margin="3 1" cardElevation="0" cardCornerRadius="10" cardBackgroundColor="{{AllColor}}" alpha="{{alpha}}" >
                <card margin="1 1" w="*" cardElevation="0" cardCornerRadius="10" cardBackgroundColor="#161824">
                    
                    <ScrollView>
                        
                        <card w="*" h="*" margin="5"bg="#00FFFFFF" cardCornerRadius="3dp" cardElevation="2dp" gravity="center">
                            <vertical bg="#00FFFFFF" margin="5" >
                                
                                <vertical>
                                    <linear>
                                        <checkbox id="暴打肥龙2" text="1、暴打肥龙2" textStyle="bold"  textColor="#ffffff"   layout_weight="1" />
                                        <text text="运行" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <input id="Runningtime1" hint="null"text="30" gravity="center" singleLine="true"  textStyle="bold"   w="60" backgroundTint="#000000" textColor="#000000" textSize="13"  />
                                        <text text="分" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <button id="下载链接1"text="下载"style="Widget.AppCompat.Button.Borderless.Colored"margin="-13 0 -17 0"textColor="#ff00bfff"textSize="13sp" h="auto"w="auto"/>
                                    </linear>
                                </vertical>
                                
                                <vertical>
                                    <linear>
                                        <checkbox id="暴打肥龙3" text="2、暴打肥龙3" textStyle="bold"  textColor="#ffffff"   layout_weight="1" />
                                        <text text="运行" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <input id="Runningtime2" hint="null"text="30" gravity="center" singleLine="true"  textStyle="bold"   w="60" backgroundTint="#000000" textColor="#000000" textSize="13"  />
                                        <text text="分" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <button id="下载链接2"text="下载"style="Widget.AppCompat.Button.Borderless.Colored"margin="-13 0 -17 0"textColor="#ff00bfff"textSize="13sp" h="auto"w="auto"/>
                                    </linear>
                                </vertical>
                                
                                <vertical>
                                    <linear>
                                        <checkbox id="全民大丰收" text="3、全民大丰收" textStyle="bold"  textColor="#ffffff"   layout_weight="1" />
                                        <text text="运行" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <input id="Runningtime3" hint="null"text="30" gravity="center" singleLine="true"  textStyle="bold"   w="60" backgroundTint="#000000" textColor="#000000" textSize="13"  />
                                        <text text="分" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <button id="下载链接3"text="下载"style="Widget.AppCompat.Button.Borderless.Colored"margin="-13 0 -17 0"textColor="#ff00bfff"textSize="13sp" h="auto"w="auto"/>
                                    </linear>
                                </vertical>
                                
                                <vertical>
                                    <linear>
                                        <checkbox id="全民大丰收OL" text="4、全民大丰收OL" textStyle="bold"  textColor="#ffffff"   layout_weight="1" />
                                        <text text="运行" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <input id="Runningtime4" hint="null"text="30" gravity="center" singleLine="true"  textStyle="bold"   w="60" backgroundTint="#000000" textColor="#000000" textSize="13"  />
                                        <text text="分" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <button id="下载链接4"text="下载"style="Widget.AppCompat.Button.Borderless.Colored"margin="-13 0 -17 0"textColor="#ff00bfff"textSize="13sp" h="auto"w="auto"/>
                                    </linear>
                                </vertical>
                                
                                <vertical>
                                    <linear>
                                        <checkbox id="魔性小飞机3" text="5、魔性小飞机3" textStyle="bold"  textColor="#ffffff"   layout_weight="1" />
                                        <text text="运行" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <input id="Runningtime5" hint="null"text="30" gravity="center" singleLine="true"  textStyle="bold"   w="60" backgroundTint="#000000" textColor="#000000" textSize="13"  />
                                        <text text="分" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <button id="下载链接5"text="下载"style="Widget.AppCompat.Button.Borderless.Colored"margin="-13 0 -17 0"textColor="#ff00bfff"textSize="13sp" h="auto"w="auto"/>
                                    </linear>
                                </vertical>
                                
                                <vertical>
                                    <linear>
                                        <checkbox id="梦幻餐厅" text="6、梦幻餐厅" textStyle="bold"  textColor="#ffffff"   layout_weight="1" />
                                        <text text="运行" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <input id="Runningtime6" hint="null"text="30" gravity="center" singleLine="true"  textStyle="bold"   w="60" backgroundTint="#000000" textColor="#000000" textSize="13"  />
                                        <text text="分" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <button id="下载链接6"text="下载"style="Widget.AppCompat.Button.Borderless.Colored"margin="-13 0 -17 0"textColor="#ff00bfff"textSize="13sp" h="auto"w="auto"/>
                                    </linear>
                                </vertical>
                                
                                <vertical>
                                    <linear>
                                        <checkbox id="富贵美食街" text="7、富贵美食街" textStyle="bold"  textColor="#ffffff"   layout_weight="1" />
                                        <text text="运行" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <input id="Runningtime7" hint="null"text="30" gravity="center" singleLine="true"  textStyle="bold"   w="60" backgroundTint="#000000" textColor="#000000" textSize="13"  />
                                        <text text="分" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <button id="下载链接7"text="下载"style="Widget.AppCompat.Button.Borderless.Colored"margin="-13 0 -17 0"textColor="#ff00bfff"textSize="13sp" h="auto"w="auto"/>
                                    </linear>
                                </vertical>
                                
                                <vertical>
                                    <linear>
                                        <checkbox id="捉妖特工队OL" text="8、捉妖特工队OL" textStyle="bold"  textColor="#ffffff"   layout_weight="1" />
                                        <text text="运行" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <input id="Runningtime8" hint="null"text="30" gravity="center" singleLine="true"  textStyle="bold"   w="60" backgroundTint="#000000" textColor="#000000" textSize="13"  />
                                        <text text="分" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <button id="下载链接8"text="下载"style="Widget.AppCompat.Button.Borderless.Colored"margin="-13 0 -17 0"textColor="#ff00bfff"textSize="13sp" h="auto"w="auto"/>
                                    </linear>
                                </vertical>
                                
                                <vertical>
                                    <linear>
                                        <checkbox id="猜歌红包群" text="9、猜歌红包群" textStyle="bold"  textColor="#ffffff"   layout_weight="1" />
                                        <text text="运行" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <input id="Runningtime9" hint="null"text="30" gravity="center" singleLine="true"  textStyle="bold"   w="60" backgroundTint="#000000" textColor="#000000" textSize="13"  />
                                        <text text="分" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <button id="下载链接9"text="下载"style="Widget.AppCompat.Button.Borderless.Colored"margin="-13 0 -17 0"textColor="#ff00bfff"textSize="13sp" h="auto"w="auto"/>
                                    </linear>
                                </vertical>
                                
                                <vertical>
                                    <linear>
                                        <checkbox id="红包聊天室" text="10、红包聊天室" textStyle="bold"  textColor="#ffffff"   layout_weight="1" />
                                        <text text="运行" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <input id="Runningtime10" hint="null"text="30" gravity="center" singleLine="true"  textStyle="bold"   w="60" backgroundTint="#000000" textColor="#000000" textSize="13"  />
                                        <text text="分" w="auto" h="auto"  textStyle="bold" textColor="#ff0000" />
                                        <button id="下载链接10"text="下载"style="Widget.AppCompat.Button.Borderless.Colored"margin="-13 0 -17 0"textColor="#ff00bfff"textSize="13sp" h="auto"w="auto"/>
                                    </linear>
                                </vertical>
                                <webview id="webview" h="auto" margin="0 16"/>
                                // <radiogroup marginLeft="16" marginTop="16">
                                
                                //  </radiogroup>
                                
                                {/*运行日记*/}
                                
                            </vertical>
                        </card>
                    </ScrollView>
                    
                    
                </card>
            </card>
            
            
            
            
            
            
            
            
            
        </vertical>
        
    </vertical>
    
    </card>
    </frame>
    
    </viewpager>


);
ui.tv_text.setSelected(true);

function putStorage(name, value) {
    var storage = storages.create("存储");
    storage.put(name, value);
}

function getStorage(name) {
    var storage = storages.create("存储");
    return storage.get(name);
}

storage = storages.create("awtlq")
识别率 = storage.get("识别率", 0.70)
ui.sb.setText(String(识别率))
ui.识别.progress = 识别度返回(识别率)
ui.识别.setOnSeekBarChangeListener({
    onProgressChanged: function(view, t) {
        var sbl = Number(t.toString())
        识别率 = 识别度(sbl)
        storage.put("识别率", 识别率);
    }
})

$debug.setMemoryLeakDetectionEnabled(false)


if (getStorage("Runningtime1")) {
    ui.Runningtime1.setText(getStorage("Runningtime1"))
}

if (getStorage("Runningtime2")) {
    ui.Runningtime2.setText(getStorage("Runningtime2"))
}

if (getStorage("Runningtime3")) {
    ui.Runningtime3.setText(getStorage("Runningtime3"))
}

if (getStorage("Runningtime4")) {
    ui.Runningtime4.setText(getStorage("Runningtime4"))
}

if (getStorage("Runningtime5")) {
    ui.Runningtime5.setText(getStorage("Runningtime5"))
}

if (getStorage("Runningtime6")) {
    ui.Runningtime6.setText(getStorage("Runningtime6"))
}

if (getStorage("Runningtime7")) {
    ui.Runningtime7.setText(getStorage("Runningtime7"))
}

if (getStorage("Runningtime8")) {
    ui.Runningtime8.setText(getStorage("Runningtime8"))
}

if (getStorage("Runningtime9")) {
    ui.Runningtime9.setText(getStorage("Runningtime9"))
}

if (getStorage("Runningtime10")) {
    ui.Runningtime10.setText(getStorage("Runningtime10"))
}

ui.autoService.on("check", function(checked) {
    if (checked && auto.service == null) {

        app.startActivity({
            action: "android.settings.ACCESSIBILITY_SETTINGS"
        });
    }
    if (!checked && auto.service != null) {
        auto.service.disableSelf();
    }
})
// 当用户回到本界面时,resume事件会被触发
ui.emitter.on("resume", function() {
    // 此时根据无障碍服务的开启情况,同步开关的状态
    ui.autoService.checked = auto.service != null;
});
SystemUiVisibility(false);
ui.viewpager.overScrollMode = View.OVER_SCROLL_NEVER; //删除滑动到底的阴影
ui.viewpager.currentItem = 1; //跳转到1号子页面
ui.viewpager.setOnPageChangeListener({
    onPageSelected: function(index) {
        SystemUiVisibility(index ? false : true);
    }
});
ui.viewpager.setPageTransformer(true, new MyPageTransform()); //设置viewpager切换动画


var items = [{
        text: "①脚本项目群",
        drawable: "ic_games_black_48dp"

    },
    {
        text: "②脚本交流群",
        drawable: "ic_favorite_black_48dp"

    },
    {
        text: "联系作者",
        drawable: "ic_favorite_black_48dp"

    },
    {
        text: "抓包工具",
        drawable: "ic_favorite_black_48dp"
    },
    {
        text: "学习脚本",
        drawable: "ic_favorite_black_48dp"

    },
];


ui.settingsBtn.on("click", () => {
    toastLog("待添加");
});
ui.logBtn.on("click", () => {
    toast("退出脚本")
    exit()
});

/**
 * 自定义viewpager动画
 */
 
 
//暴打肥龙2
ui.下载链接1.on("click", () => {
    app.openUrl("http://hczd.iwz123.cn/hczd/share/html/download_share.html?invitation=1901429")
})

//暴打肥龙3
ui.下载链接2.on("click", () => {
    app.openUrl("http://hczd.iwz123.cn/hczd/share/html/download_share.html?invitation=3139948")
})

//全民大丰收
ui.下载链接3.on("click", () => {
    app.openUrl("http://fhnc-ii-share.xlzxtj.cn/fhnc_ii/share/html/download_share.html?invitation=16353783")
})

//全民大丰收OL
ui.下载链接4.on("click", () => {
    app.openUrl("http://qmdfsol.zhenyejt.cn/qmdfsol/share/html/download_share.html?invitation=1169105")
})

//魔性小飞机3
ui.下载链接5.on("click", () => {
    app.openUrl("http://fjtf.privategardener.cn/lwfj_ii/share/html/download_share.html?invitation=10036905")
})

//梦幻餐厅
ui.下载链接6.on("click", () => {
    app.openUrl("https://www.joyo.games/share/mhct/qrcode.html?os=android&userId=100225372")
})

//富贵美食街
ui.下载链接7.on("click", () => {
    app.openUrl("https://www.joyo.games/share/fgmsj/qrcode.html?os=android&userId=100091476")
})

//捉妖特工队OL
ui.下载链接8.on("click", () => {
    app.openUrl("http://zytgdol.watchuq.cn/zytgdol/share/html/download_share.html?invitation=1288243")
})

//猜歌红包群
ui.下载链接9.on("click", () => {
    app.openUrl("http://cghbq1.huyuyouxi.com/loadingPage.html?i=125457146&n=7")
})

//红包聊天室
ui.下载链接10.on("click", () => {
    app.openUrl("http://hbltsh5.huyuyouxi.com/loadingPage.html?i=125473564&n=4")
})
 
function MyPageTransform() {
    var mDp30 = dp2px(30);
    var mRadius = 0;
    var pageWidth;
    this.transformPage = (function(view, position) {
        pageWidth = view.getWidth();
        if (position < -1) {
            view.setAlpha(0);
        } else if (position <= 0) {
            view.setTranslationX(pageWidth * position);
        } else if (position <= 1) {
            view.setTranslationX((pageWidth * 0.5) * -position);
            view.setScaleX(1 - (0.3 * position));
            view.setScaleY(1 - (0.3 * position));
            if (mRadius != parseInt(mDp30 * position)) { //圆角切换
                ui.card.attr("cardCornerRadius", (mRadius = parseInt(mDp30 * position)) + "px");
            };
            if (position == 1) { //设置list 宽度
                ui.drawerList.attr("w", parseInt(pageWidth * 0.65) + "px");
            };
        } else {
            view.setAlpha(0);
        }
    });
};
ui.drawerList.setDataSource(items);
ui.drawerList.overScrollMode = View.OVER_SCROLL_NEVER;
ui.drawerList.on("item_click", items => { //列表控件点击事件
    switch (items.text) {
        case "联系作者":
            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",
            })
            break;

        case "①脚本项目群":
            toast("欢迎你的加入~")
            app.startActivity({
                action: "android.intent.action.VIEW",
                data: "mqqapi://card/show_pslcard?src_type=internal&version=1&uin=" + QQ群1 + "&card_type=group&source=qrcode",
                packageName: "com.tencent.mobileqq",
            })
            
            break

        case "②项目交流群":
            toast("暂无")
            /*
            app.startActivity({
                action: "android.intent.action.VIEW",
                data: "mqqapi://card/show_pslcard?src_type=internal&version=1&uin=" + QQ群2 + "&card_type=group&source=qrcode",
                packageName: "com.tencent.mobileqq",
            })
            */
            break
            case"抓包工具":
            toast("正在跳转~")
            app.openUrl("https://wwa.lanzoui.com/ihTIannl00h")
            break;
        case "学习脚本":
            toast("请联系作者~")
            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",
            })
            break;

    }
});
ui.kjid.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.开始运行.click(function() {

    threads.start(function() {

        setInterval(() => {}, 1000);

        if (!requestScreenCapture()) {
            toastLog("请求截图失败");
            exit();
        }
        //第二种电池优化
        events.observeKey();
        主程序()



    })

})
events.onKeyDown("VolumeDown()", function(event) {
    //toastLog("音量上键弹起");
});

function 主程序() {



    threads.start(function() {
        while (true) {
            关闭广告()
        }
    })

    threads.start(function() {
        while (true) {
            sleep(300000)
            toastLog("每运行10分钟会清理后台一次,以防止开到某个界面")
            清理后台()
        }
    })

    while (true) {
        
        if (ui.暴打肥龙2.checked) {
            第1个脚本()
        }
        if (ui.暴打肥龙3.checked) {
            第2个脚本()
        }
        
        if(ui.全民大丰收.checked) {
            第3个脚本()
        }
        
        if(ui.全民大丰收OL.checked) {
            第4个脚本()
        }
        
        if(ui.魔性小飞机3.checked) {
            第5个脚本()
        }
        
        if(ui.梦幻餐厅.checked) {
            第6个脚本()
        }
        
        if(ui.富贵美食街.checked) {
            第7个脚本()
        }
        
        if(ui.捉妖特工队OL.checked) {
            第8个脚本()
        }
        
        if(ui.猜歌红包群.checked) {
            第9个脚本()
        }
        
        if(ui.红包聊天室.checked) {
            第10个脚本()
        }
    }
}


function 第1个脚本() {

    var 软件名 = "暴打肥龙"
    var 包名 = "com.lwhy.hczddl"
    // 检测APP没有安装
    if (!packageIsExists(包名)) {
        toastLog("您的设备未安装" + 软件名 + ".")
        sleep(2000)
        return;
    };
    
    
    
    
    var Runningtime1 = ui.Runningtime1.getText().toString() //分钟
    putStorage("Runningtime1", Runningtime1);
    
    var 时间开始 = new Date().getTime() //记录开始运行时间
    launchPackage(包名)
    toastLog("启动 " + 软件名 + "...");
    toastLog("识别率" + 识别率)
    sleep(5000)
    
    //第1个脚本
    while (true) { //这里有循环了
    图("暴打红包1", 识别率, 5, 5)
    图("暴打元宝1", 识别率, 5, 5)
    图("暴打领取1", 识别率, 5, 5)
    图("暴打领取2", 识别率, 5, 5)
    图("暴打确定1", 识别率, 5, 5)
    图("暴打关闭1", 识别率, 5, 5)
    图("暴打关闭2", 识别率, 5, 5)
    图("关闭1", 识别率, 5, 5)
    
    检测界面(包名, 软件名)
    //判断时间是否已到指定时间,并且跳出
    var 时间结束 = new Date().getTime()
    var 时间间隔 = Math.floor((时间结束 - 时间开始) / 1000);
    if (时间间隔 >= Runningtime1.toString() * 60) {
        toastLog("定时时间已到")
        sleep(1000)
        清理后台()
        toastLog("当前平台运行结束,即将开始下一个平台~~")
        break
    }
}
}; //脚本结束


function 第2个脚本() {

    var 软件名 = "暴打肥龙"
    var 包名 = "com.lwhy.hczddl.ol"
    // 检测APP没有安装
    if (!packageIsExists(包名)) {
        toastLog("您的设备未安装" + 软件名 + ".")
        sleep(2000)
        return;
    };
    
    var Runningtime2 = ui.Runningtime2.getText().toString() //分钟
    putStorage("Runningtime2", Runningtime2);
    
    var 时间开始 = new Date().getTime() //记录开始运行时间
    launchPackage(包名)
    toastLog("启动 " + 软件名 + "...");
    toastLog("识别率" + 识别率)
    sleep(5000)
    
    //第1个脚本
    while (true) { //这里有循环了
    图("暴打红包1", 识别率, 5, 5)
    图("暴打元宝1", 识别率, 5, 5)
    图("暴打领取1", 识别率, 5, 5)
    图("暴打领取2", 识别率, 5, 5)
    图("暴打确定1", 识别率, 5, 5)
    图("暴打关闭1", 识别率, 5, 5)
    图("暴打关闭2", 识别率, 5, 5)
    图("关闭1", 识别率, 5, 5)
    
    检测界面(包名, 软件名)
    //判断时间是否已到指定时间,并且跳出
    var 时间结束 = new Date().getTime()
    var 时间间隔 = Math.floor((时间结束 - 时间开始) / 1000);
    if (时间间隔 >= Runningtime2.toString() * 60) {
        toastLog("定时时间已到")
        sleep(1000)
        清理后台()
        toastLog("当前平台运行结束,即将开始下一个平台~~")
        break
    }
}
}; //脚本结束

function 第3个脚本() {

    var 软件名 = "全民大丰收"
    var 包名 = "com.lwhy.qmdfs"
    // 检测APP没有安装
    if (!packageIsExists(包名)) {
        toastLog("您的设备未安装" + 软件名 + ".")
        sleep(2000)
        return;
    };
    
    var Runningtime3 = ui.Runningtime3.getText().toString() //分钟
    putStorage("Runningtime3", Runningtime3);
    
    var 时间开始 = new Date().getTime() //记录开始运行时间
    launchPackage(包名)
    toastLog("启动 " + 软件名 + "...");
    toastLog("识别率" + 识别率)
    sleep(5000)
    
    //第1个脚本
    while (true) { //这里有循环了
    图("丰收领取1", 识别率, 5, 5)
    图("丰收关闭1", 识别率, 5, 5)
    图("丰收关闭2", 识别率, 5, 5)
    图("丰收红包1", 识别率, 5, 5)
    图("丰收红包2", 识别率, 5, 5)
    图("丰收红包3", 识别率, 5, 5)
    图("关闭1", 识别率, 5, 5)
    
    检测界面(包名, 软件名)
    //判断时间是否已到指定时间,并且跳出
    var 时间结束 = new Date().getTime()
    var 时间间隔 = Math.floor((时间结束 - 时间开始) / 1000);
    if (时间间隔 >= Runningtime3.toString() * 60) {
        toastLog("定时时间已到")
        sleep(1000)
        清理后台()
        toastLog("当前平台运行结束,即将开始下一个平台~~")
        break
    }
}
}; //脚本结束

function 第4个脚本() {

    var 软件名 = "全民大丰收"
    var 包名 = "com.lwhy.qmdfsol"
    // 检测APP没有安装
    if (!packageIsExists(包名)) {
        toastLog("您的设备未安装" + 软件名 + ".")
        sleep(2000)
        return;
    };
    
    var Runningtime4 = ui.Runningtime4.getText().toString() //分钟
    putStorage("Runningtime4", Runningtime4);
    
    var 时间开始 = new Date().getTime() //记录开始运行时间
    launchPackage(包名)
    toastLog("启动 " + 软件名 + "...");
    toastLog("识别率" + 识别率)
    sleep(5000)
    
    //第1个脚本
    while (true) { //这里有循环了
    图("丰收领取1", 识别率, 5, 5)
    图("丰收关闭1", 识别率, 5, 5)
    图("丰收关闭2", 识别率, 5, 5)
    图("丰收红包1", 识别率, 5, 5)
    图("丰收红包2", 识别率, 5, 5)
    图("丰收红包3", 识别率, 5, 5)
    图("关闭1", 识别率, 5, 5)
    
    检测界面(包名, 软件名)
    //判断时间是否已到指定时间,并且跳出
    var 时间结束 = new Date().getTime()
    var 时间间隔 = Math.floor((时间结束 - 时间开始) / 1000);
    if (时间间隔 >= Runningtime4.toString() * 60) {
        toastLog("定时时间已到")
        sleep(1000)
        清理后台()
        toastLog("当前平台运行结束,即将开始下一个平台~~")
        break
    }
}
}; //脚本结束

function 第5个脚本() {

    var 软件名 = "魔性小飞机"
    var 包名 = "com.lwhy.fjtf.v3"
    // 检测APP没有安装
    if (!packageIsExists(包名)) {
        toastLog("您的设备未安装" + 软件名 + ".")
        sleep(2000)
        return;
    };
    
    var Runningtime5 = ui.Runningtime5.getText().toString() //分钟
    putStorage("Runningtime5", Runningtime5);
    
    var 时间开始 = new Date().getTime() //记录开始运行时间
    launchPackage(包名)
    toastLog("启动 " + 软件名 + "...");
    toastLog("识别率" + 识别率)
    sleep(5000)
    
    //第1个脚本
    while (true) { //这里有循环了
    图("魔性关闭1", 识别率, 5, 5)
    图("魔性关闭2", 识别率, 5, 5)
    图("魔性红包1", 识别率, 5, 5)
    图("魔性红包2", 识别率, 5, 5)
    图("魔性领取1", 识别率, 5, 5)
    图("魔性领取2", 识别率, 5, 5)
    图("魔性领取3", 识别率, 5, 5)
    图("魔性领取4", 识别率, 5, 5)
    图("魔性确定1", 识别率, 5, 5)
    图("关闭1", 识别率, 5, 5)
    
    检测界面(包名, 软件名)
    //判断时间是否已到指定时间,并且跳出
    var 时间结束 = new Date().getTime()
    var 时间间隔 = Math.floor((时间结束 - 时间开始) / 1000);
    if (时间间隔 >= Runningtime5.toString() * 60) {
        toastLog("定时时间已到")
        sleep(1000)
        清理后台()
        toastLog("当前平台运行结束,即将开始下一个平台~~")
        break
    }
}
}; //脚本结束

function 第6个脚本() {

    var 软件名 = "梦幻餐厅"
    var 包名 = "com.yunhoon.mhct"
    // 检测APP没有安装
    if (!packageIsExists(包名)) {
        toastLog("您的设备未安装" + 软件名 + ".")
        sleep(2000)
        return;
    };
    
    var Runningtime6 = ui.Runningtime6.getText().toString() //分钟
    putStorage("Runningtime6", Runningtime6);
    
    var 时间开始 = new Date().getTime() //记录开始运行时间
    launchPackage(包名)
    toastLog("启动 " + 软件名 + "...");
    toastLog("识别率" + 识别率)
    sleep(5000)
    
    //第1个脚本
    while (true) { //这里有循环了
    图("梦幻关闭1", 识别率, 5, 5)
    图("梦幻关闭2", 识别率, 5, 5)
    图("梦幻关闭3", 识别率, 5, 5)
    图("梦幻红包1", 识别率, 5, 5)
    图("梦幻红包2", 识别率, 5, 5)
    图("梦幻揽客1", 识别率, 5, 5)
    图("梦幻自动1", 识别率, 5, 5)
    图("梦幻修锅1", 识别率, 5, 5)
    图("梦幻领取1", 识别率, 5, 5)
    图("关闭1", 识别率, 5, 5)
    
    
    检测界面(包名, 软件名)
    //判断时间是否已到指定时间,并且跳出
    var 时间结束 = new Date().getTime()
    var 时间间隔 = Math.floor((时间结束 - 时间开始) / 1000);
    if (时间间隔 >= Runningtime6.toString() * 60) {
        toastLog("定时时间已到")
        sleep(1000)
        清理后台()
        toastLog("当前平台运行结束,即将开始下一个平台~~")
        break
    }
}
}; //脚本结束

function 第7个脚本() {

    var 软件名 = "富贵美食街"
    var 包名 = "com.yunhoon.fgmsj"
    // 检测APP没有安装
    if (!packageIsExists(包名)) {
        toastLog("您的设备未安装" + 软件名 + ".")
        sleep(2000)
        return;
    };
    
    var Runningtime7 = ui.Runningtime7.getText().toString() //分钟
    putStorage("Runningtime7", Runningtime7);
    
    var 时间开始 = new Date().getTime() //记录开始运行时间
    launchPackage(包名)
    toastLog("启动 " + 软件名 + "...");
    toastLog("识别率" + 识别率)
    sleep(5000)
    
    //第1个脚本
    while (true) { //这里有循环了
    图("梦幻关闭1", 识别率, 5, 5)
    图("梦幻关闭2", 识别率, 5, 5)
    图("梦幻关闭3", 识别率, 5, 5)
    图("梦幻红包1", 识别率, 5, 5)
    图("梦幻红包2", 识别率, 5, 5)
    图("梦幻揽客1", 识别率, 5, 5)
    图("梦幻自动1", 识别率, 5, 5)
    图("梦幻修锅1", 识别率, 5, 5)
    图("梦幻领取1", 识别率, 5, 5)
    图("关闭1", 识别率, 5, 5)
    
    
    检测界面(包名, 软件名)
    //判断时间是否已到指定时间,并且跳出
    var 时间结束 = new Date().getTime()
    var 时间间隔 = Math.floor((时间结束 - 时间开始) / 1000);
    if (时间间隔 >= Runningtime7.toString() * 60) {
        toastLog("定时时间已到")
        sleep(1000)
        清理后台()
        toastLog("当前平台运行结束,即将开始下一个平台~~")
        break
    }
}
}; //脚本结束

function 第8个脚本() {

    var 软件名 = "捉妖特工队OL"
    var 包名 = "com.lwhy.zytgdol"
    // 检测APP没有安装
    if (!packageIsExists(包名)) {
        toastLog("您的设备未安装" + 软件名 + ".")
        sleep(2000)
        return;
    };
    
    var Runningtime8 = ui.Runningtime8.getText().toString() //分钟
    putStorage("Runningtime8", Runningtime8);
    
    var 时间开始 = new Date().getTime() //记录开始运行时间
    launchPackage(包名)
    toastLog("启动 " + 软件名 + "...");
    toastLog("识别率" + 识别率)
    sleep(5000)
    
    //第1个脚本
    while (true) { //这里有循环了
    图("捉妖关闭1", 识别率, 5, 5)
    图("捉妖红包1", 识别率, 5, 5)
    图("捉妖红包2", 识别率, 5, 5)
    图("捉妖红包3", 识别率, 5, 5)
    图("捉妖领取1", 识别率, 5, 5)
    图("关闭1", 识别率, 5, 5)
    
    
    检测界面(包名, 软件名)
    //判断时间是否已到指定时间,并且跳出
    var 时间结束 = new Date().getTime()
    var 时间间隔 = Math.floor((时间结束 - 时间开始) / 1000);
    if (时间间隔 >= Runningtime8.toString() * 60) {
        toastLog("定时时间已到")
        sleep(1000)
        清理后台()
        toastLog("当前平台运行结束,即将开始下一个平台~~")
        break
    }
}
}; //脚本结束

function 第9个脚本() {

    var 软件名 = "猜歌红包群"
    var 包名 = "com.xiaoniu.hongbao.cghbq"
    // 检测APP没有安装
    if (!packageIsExists(包名)) {
        toastLog("您的设备未安装" + 软件名 + ".")
        sleep(2000)
        return;
    };
    
    var Runningtime9 = ui.Runningtime9.getText().toString() //分钟
    putStorage("Runningtime9", Runningtime9);
    
    var 时间开始 = new Date().getTime() //记录开始运行时间
    launchPackage(包名)
    toastLog("启动 " + 软件名 + "...");
    toastLog("识别率" + 识别率)
    sleep(5000)
    
    //第1个脚本
    while (true) { //这里有循环了
    图("猜歌红包群", 识别率, 1, 1)
    图("猜歌红包", 识别率, 1, 1)
    图("猜歌开红包", 识别率, 1, 1)
    图("猜歌同意1", 识别率, 1, 1)     
    图("猜歌同意2", 识别率, 1, 1)
    
    
    检测界面(包名, 软件名)
    //判断时间是否已到指定时间,并且跳出
    var 时间结束 = new Date().getTime()
    var 时间间隔 = Math.floor((时间结束 - 时间开始) / 1000);
    if (时间间隔 >= Runningtime9.toString() * 60) {
        toastLog("定时时间已到")
        sleep(1000)
        清理后台()
        toastLog("当前平台运行结束,即将开始下一个平台~~")
        break
    }
}
}; //脚本结束

function 第10个脚本() {

    var 软件名 = "红包聊天室"
    var 包名 = "com.xiaoniu.hongbao.liaotian"
    // 检测APP没有安装
    if (!packageIsExists(包名)) {
        toastLog("您的设备未安装" + 软件名 + ".")
        sleep(2000)
        return;
    };
    
    var Runningtime10 = ui.Runningtime10.getText().toString() //分钟
    putStorage("Runningtime10", Runningtime10);
    
    var 时间开始 = new Date().getTime() //记录开始运行时间
    launchPackage(包名)
    toastLog("启动 " + 软件名 + "...");
    toastLog("识别率" + 识别率)
    sleep(5000)
    
    //第1个脚本
    while (true) { //这里有循环了
    图("猜歌红包群", 识别率, 1, 1)
    图("猜歌红包", 识别率, 1, 1)
    图("猜歌开红包", 识别率, 1, 1)
    图("猜歌同意1", 识别率, 1, 1)     
    图("猜歌同意2", 识别率, 1, 1)
    
    
    检测界面(包名, 软件名)
    //判断时间是否已到指定时间,并且跳出
    var 时间结束 = new Date().getTime()
    var 时间间隔 = Math.floor((时间结束 - 时间开始) / 1000);
    if (时间间隔 >= Runningtime10.toString() * 60) {
        toastLog("定时时间已到")
        sleep(1000)
        清理后台()
        toastLog("当前平台运行结束,即将开始下一个平台~~")
        break
    }
}
}; //脚本结束


function 图(所找图, 识别率, a, b) {
    let 大图 = captureScreen()
    let 小图1 = images.read("图片/" + 所找图 + ".jpg" );
    let 缩放x = device.width / 720
    let 缩放y = device.height / 1600
    let 小图 = images.scale(小图1, 缩放x, 缩放y)
    let result = images.matchTemplate(大图, 小图, {
        max: 5,
        region: [0, 0, device.width, device.height], //区域
        threshold: 识别率,
    });
    if (result != null) {
        for (let i = 0; i < result.matches.length; i++) {
            let pp = result.matches[i].point
            // log(pp)
            // console.nk
            toastLog("找到" + 所找图, pp.x, pp.y)
            click(pp.x + a, pp.y + b)
            //  log(pp.x, pp.y)
            toastLog("点击--" + 所找图)
            sleep(200)
            break;
        }
    }
}



//广告    

关闭1 = images.fromBase64("/9j/4QE3RXhpZgAATU0AKgAAAAgABgEAAAQAAAABAAAAGQEBAAQAAAABAAAAHodpAAQAAAABAAAAagESAAMAAAABAAAAAAEyAAIAAAAUAAAAVoglAAQAAAABAAAAyAAAAAAyMDIxOjA0OjAzIDAxOjQxOjM1AAAEkAMAAgAAABQAAACgkpEAAgAAAAQ3OTUAkAQAAgAAABQAAAC0kggABAAAAAEAAAAAAAAAADIwMjE6MDQ6MDMgMDE6NDE6MzUAMjAyMTowNDowMyAwMTo0MTozNQAAAgAHAAUAAAADAAAA5gAdAAIAAAALAAAA/gAAAAAAAAABAAAAAQAAACkAAAABAAAAIwAAAAEyMDIxOjA0OjAzAAABATI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jo6OjpLQX/2Q==")


//关闭广告()
function base64找图广告(识别率) {

    var arr = [
        //广告弹窗1,
        关闭1,
        //关闭2,
        关闭3,
        //关闭4,
        关闭5,
        //关闭6,
        关闭7,
        关闭8,

    ]
    var arr1 = [
        // "广告弹窗1",
        "关闭1",
        // "关闭2",
        "关闭3",
        //"关闭4",
        "关闭5",
        //"关闭6",
        "关闭7",
        "关闭8",
    ]
    //$debug.setMemoryLeakDetectionEnabled(true);
    for (var i = 0; i < arr.length; i++) {
        var sfk = device.width / 1080 //得到 宽缩放比
        var gdg = 2340 * sfk //得到   固定高
        // var img = images.read(软件名 + "/" + hzm + ".jpg");
        var 小图1 = images.scale(arr[i], sfk, gdg / 2340) //进行缩放
        var 小图 = images.threshold(小图1, 130, 255, "BINARY")
        var 大图1 = captureScreen().clone() //截图
        var 大图 = images.threshold(大图1, 130, 255, "BINARY")
        图片 = findImage(大图, 小图, {
            region: [0, 0, device.width, device.height], //区域找图
            threshold: 识别率, //识别率
        });
        if (图片) {
            var a = 小图.getWidth()
            var b = 小图.getHeight()
            var c = random(1, a)
            var d = random(1, b)
            var 偏移x = Number(图片.x) + Number(c)
            var 偏移y = Number(图片.y) + Number(d)
            click(图片.x + c, 图片.y + d) //点击
            toastLog(arr1[i])
            sleep(1000)
        } else {
            // log("未找到" + arr1[i])
        }
        大图1.recycle();
        小图1.recycle();
        大图.recycle();
        小图.recycle();
    }

};


关闭广告次数 = 0


function 关闭广告(包名) {
    var arr = [
        "ksad_detail_close_btn",
        "ksad_end_close_btn",
        "tt_video_ad_close",
        "confirm_tv",
        "tt_negtive",
        "close_imageview",
        "tt_titlebar_close",
        "detail_back",
        "close",
        "reward_ad_close",
        "ksad_top_toolbar_close_tip",
        "tt_video_ad_close_layout",
        "tt_insert_dislike_icon_img",
    ]
    for (var i = 0; i < arr.length; i++) {
        if (id(arr[i]).exists()) {

            id(arr[i]).findOne().click()
            关闭广告次数 = 关闭广告次数 + 1
            toastLog("本次累计关闭_广告" + 关闭广告次数 + "次");
            //console.info("关闭广告");
        }
    }
    if (id("kleinAd_iv_close").exists() && text("奖励已发放").exists()) {
        id("kleinAd_iv_close").findOnce().click();
        关闭广告次数 = 关闭广告次数 + 1
        toastLog("本次累计关闭_广告" + 关闭广告次数 + "次");
        //  console.info("关闭广告");

        sleep(500)
    }
    //抖音
    if (id("android:id/content").find().length > 0) {
        if (id("android:id/content").findOne().childCount() == 1) {
            if (id("android:id/content").findOne().childCount() == 1) {
                if (id("android:id/content").findOne().child(0).childCount() == 1) {
                    if (id("android:id/content").findOne().child(0).child(0).childCount() == 2) {
                        if (id("android:id/content").findOne().child(0).child(0).child(1).className() === "android.widget.ImageView") {
                            log("找到视频X");
                            id("android:id/content").findOne().child(0).child(0).child(1).click();
                        }

                    } //
                }
            }

        }
    }


    关闭广告2 = 包名 + ":id/tt_video_ad_close_layout" //穿山甲 抖音右上角X
    广告X = 包名 + ":id/tt_insert_dislike_icon_img"
    广告内X = 包名 + ":id/tt_bu_close"
    广告返回 = 包名 + ":id/tt_titlebar_back"
    右广告X = 包名 + ":id/tt_playable_ad_close_layout"
    倒计时X = "anythink_file_paths" //抖音=提前结束左上角X

    //function 广告检测() {
    fqjs = 0
    if (id("img_close").findOnce()) {
        id("img_close").findOnce().click();
        //    关闭广告次数=关闭广告次数+1
        toastLog("8关闭弹窗")

        sleep(500)
    }

    if (text("浏览页面25s 领取奖励").exists()) {
        随机往上滑()
        sleep(2000)
    }
    控件点击(text, "无法关闭", "无法关闭")


    var ggx = id(广告X).findOne(100)
    if (ggx) {
        toastLog("点击-广告X")
        try {
            dadclick(ggx).click()
        } catch (error) {}
        sleep(500)
    }

    var yggx = id(右广告X).findOne(100)
    if (yggx) {
        toastLog("点击-广告X")
        try {
            dadclick(yggx).click()
        } catch (error) {}
        sleep(500)
    }

    var ggfh = id(广告返回).findOne(100)
    if (ggfh) {
        toastLog("点击-广告返回1")
        try {
            dadclick(ggfh).click()
        } catch (error) {}
        sleep(500)
    }
/*
    var ysqh = className("android.view.View").depth(11).drawingOrder(0).indexInParent(0).findOne(100)
    if (ysqh) {
        toastLog("点击-广告返回2")
        try {
            dadclick(ysqh).click()
        } catch (error) {}
        sleep(500)
    }
*/
    var gbyy = text("关闭应用").findOne(100)
    if (gbyy) {
        toastLog("发现-关闭应用")
        try {
            dadclick(gbyy).click()
        } catch (error) {}
    }

    var azyy = textContains("您要安装此应用").findOne(100)
    if (azyy) {
        toastLog("发现-狗币快手回家")
        back()
        sleep(1000)
    }

    var gxhd = text("恭喜获得奖励").findOne(100)
    if (gxhd) {
        toastLog("发现-狗币快手回家")
        back()
        sleep(1000)
    }

    var ggnx = id(广告内X).findOne(100)
    if (ggnx) {
        var fw = ggnx.bounds()
        if (fw.bottom < (device.height / 2)) {
            toastLog("点击-广告内X")
            try {
                dadclick(ggnx).click()
            } catch (error) {}
            sleep(500)
        }
    }

    var djsx = id(倒计时X).findOne(100)
    if (djsx) {
        try {
            var djsx = djsx.bounds()
            if (djsx.left < device.width / 3 && djsx.bottom < device.height / 6) {
                toastLog("点击-倒计时X")
                try {
                    dadclick(djsx).click()
                } catch (error) {}
                sleep(300)
            }
        } catch (error) {}
    }

    var wkgb = className("android.widget.ImageView").clickable(true).findOne(100)
    if (wkgb) {
        try {
            //判断属性值都为空在点
            if (!wkgb.text() && !wkgb.id()) {
                var wkgb = wkgb.bounds()
                if (wkgb.left < device.width / 3 && wkgb.bottom < device.height / 6) {
                    press(wkgb.centerX(), wkgb.centerY(), random(200, 400))
                } else {
                    toastLog("NO点击-无控点X")
                    back()
                }
            }
        } catch (error) {}
        sleep(500)
    }

    var wkfh = className("android.view.View").clickable(true).findOne(100)
    if (wkfh) {
        try {
            //判断属性值都为空在点
            if (!wkfh.text() && !wkfh.id()) {
                var wkfh = wkfh.bounds()
                if (wkfh.left < device.width / 3 && wkfh.bottom < device.height / 6) {
                    toastLog("点击-无控返回")
                    press(wkfh.centerX(), wkfh.centerY(), random(200, 400))
                    back()
                }
            }
        } catch (error) {}
        sleep(300)
    }

    var wkfh = className("android.view.View").clickable(true).findOne(100)
    if (wkfh) {
        try {
            //判断属性值都为空在点
            if (!wkfh.text() && !wkfh.id()) {
                var wkfh = wkfh.bounds()
                if (wkfh.left < device.width && wkfh.bottom < device.height) {
                    toastLog("无控返回--")
                    //press(wkfh.centerX(), wkfh.centerY(), random(200, 400))
                    back()
                } else {
                    // toastLog("无控未找到")
                }
            }
        } catch (error) {}
        sleep(300)
    }

    var tc = className("android.webkit.WebView").clickable(false).find()
    if (tc) {
        try {
            for (let i = 0; i < tc.length; i++) {
                var fw = tc[i].bounds()
                if ((fw.right - fw.left) > 300) {
                    var zb = fw
                    break
                }
            }
            var zuo = zb.left
            var shang = zb.top
            var you = zb.right
            var xia = zb.bottom
            if (shang > (device.height / 3) * 0.9 && xia < (device.height / 3) * 2.1) {
                //981
                //log("点击")
                x = (you - zuo) * 0.95 + zuo
                y = (xia - shang) * 0.1 + shang
                press(x, y, random(300, 400))
                sleep(100)
            }
        } catch (error) {}
    }

    if (fqjs >= 2) {
        fqjs = 0
        var fqjl = textContains("放弃奖励").findOne(100)
        if (fqjl) {
            toastLog("发现放弃奖励")
            try {
                dadclick(fqjl).click()
            } catch (error) {}
            try {
                click("放弃奖励")
            } catch (error) {}
        }
    } else {
        var jxsw = text("继续试玩").findOne(100)
        if (jxsw) {
            log("发现继续试玩")
            fqjs++
            console.error("点击继续试玩")
            try {
                dadclick(jxsw).click()
            } catch (error) {}
            sleep(200)
            var x = device.width / 2
            var y = device.height / 2
            RandomClick(x, y, 15, 1)
        }
    }

    var hddj = textContains(" 领取奖励").findOne(100)
    if (hddj) {
        try {
            console.info("点击-参与互动-领取奖励")
            var dj = hddj.bounds()
            press(dj.centerX(), dj.centerY(), random(250, 400))
            sleep(200)
        } catch (error) {}
    }
    var hddj = desc("参与互动 领取奖励").findOne(100)
    if (hddj) {
        try {
            console.info("点击-参与互动-领取奖励")
            var dj = hddj.bounds()
            press(dj.centerX(), dj.centerY(), random(250, 400))
            sleep(200)
        } catch (error) {}
    }
    var gggb = id(关闭广告2).findOne(500)
    if (gggb) {
        console.info("点击-关闭广告")
        toastLog("点击-关闭广告")
        dadclick(gggb).click()
        sleep(500)
        var jxsw = text("继续试玩").findOne(500)
        if (jxsw) {
            console.error("点击继续试玩")
            toastLog("点击-关闭广告")
            dadclick(jxsw).click()
            sleep(500)
            var x = device.width / 2
            var y = device.height / 2
            RandomClick(x, y, 15, 1)
            sleep(2000)
        }
    }

    //  };
    function 随机往上滑() {
        var x1 = random(device.width / 4, (device.width / 4) * 3);
        var y1 = device.height / 6 * 5;
        var x2 = random(device.width / 4, (device.width / 4) * 3);
        var y2 = device.height / 6 * 1
        swipe(x1, y1, x2, y2, random(1000, 1500));
        console.log("随机上滑");
    }

    function dadclick(id) {
        try {
            if (/UiObject/.test(id)) {
                if (id.clickable()) {
                    return id
                }
                while (true) {
                    //log(id)
                    var id = id.parent()
                    if (id) {
                        if (id.clickable() == true) {
                            //log("找到可点ID了")
                            return id
                        }
                    } else {
                        return false
                    }
                }
            } else {
                //console.error("参数错误,不符合控件ID")
                return false
            }
        } catch (error) {}
    };

    function  控件点击(dshuxing,  dzhi,  dname)  {

        var  a  =  dshuxing(dzhi).boundsInside(0,  0,  device.width,  device.height).findOnce();

        if  (a  !=  null)  {

            var  x1  =  a.bounds().left;

            var  x2  =  a.bounds().right;

            var  y1  =  a.bounds().top;

            var  y2  =  a.bounds().bottom;

            var  x  =  random(Math.floor(x1  +  1),  Math.floor(x2  -  1)); //删除控件四周1的边界,防止边框位置点击无效

            var  y  =  random(Math.floor(y1  +  1),  Math.floor(y2  -  1));

            var  timedelay  =  random(50,  150);

            toastLog("点击 ["  +  dname  +  "]");

            press(x,  y,  timedelay);

            sleep(400);

            return  true;

        } 
        else  {

            //toastLog("无法找到 ["  +  dname  +  "]");

            //其他内容

        }

    }




};

function 清理后台() {
        toastLog("返回脚本")
        sleep(1000)
        launchApp("造雾-脚本合集")
        toastLog("五秒后开始清理后台")
        sleep(5000)
        toastLog("开始清理后台")
        recents();
        sleep(3000)
        x=device.width;
        y=device.height;
        click(x*0.5,y*0.925)
        toastLog("运行等待5秒")
        sleep(5000)
}

function 检测界面(包名, 软件名) {
    if (currentPackage() != 包名) {
        toastLog("当前界面不在"+软件名)
        sleep(1500)
        toastLog("返回脚本")
        sleep(1000)
        launchApp("AutoJsPro")
        toastLog("五秒后开始清理后台")
        sleep(5000)
        toastLog("开始清理后台")
        recents();
        sleep(3000)
        x=device.width;
        y=device.height;
        click(x*0.5,y*0.925)
        toastLog("运行等待5秒")
        sleep(5000)
        toastLog("打开"+软件名)
        launch(包名)
        
    }else{
base64找图广告(识别率)
    }
}


//指定的APP包是否存在
function packageIsExists(p) {
    if (getAppName(p) == null) {
        return false;
    } else {
        return true;
    }
};

function 识别度(sbl) {
    switch (sbl) {
        case 0:
            ui.sb.setText("0.5") //这个是数字显示
            return 0.5
        case 1:
            ui.sb.setText("0.55") //这个是数字显示
            return 0.55
        case 2:
            ui.sb.setText("0.6") //这个是数字显示
            return 0.6
        case 3:
            ui.sb.setText("0.65") //这个是数字显示
            return 0.65
        case 4:
            ui.sb.setText("0.7") //这个是数字显示
            return 0.7
        case 5:
            ui.sb.setText("0.75") //这个是数字显示
            return 0.75
        case 6:
            ui.sb.setText("0.8") //这个是数字显示
            return 0.8
        case 7:
            ui.sb.setText("0.85") //这个是数字显示
            return 0.85
        case 8:
            ui.sb.setText("9") //这个是数字显示
            return 0.9
        case 9:
            ui.sb.setText("0.95") //这个是数字显示
            return 0.95
        case 10:
            ui.sb.setText("1") //这个是数字显示
            return 1
        default:
            return 0.6
    }
}

function 识别度返回(sbl) {
    //log(sbl)
    switch (sbl) {
        case 0.5:
            return 0
        case 0.55:
            return 1
        case 0.6:
            return 2
        case 0.65:
            return 3
        case 0.7:
            return 4
        case 0.75:
            return 5
        case 0.8:
            return 6
        case 0.85:
            return 7
        case 0.9:
            return 8
        case 0.95:
            return 9
        case 1:
            return 10
        default:
            return 2
    }
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

vzwz-000-000

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值