快手分身多开黑屏脚本

快手分身多开黑屏脚本


var 安卓版本 = device.release.split(".")[0];
如果想要打包好的apk,可以直接点击访问网站:日赚3万网
或者直接输入网址访问:http://rz3w.com

            <card margin="2 5"cardCornerRadius="6dp" alpha="0.6">
                <vertical>
                    <vertical margin="5">
                        <horizontal>
                            <input id="login_km" paddingLeft="5" hint="请输入脚本永久卡密" lines="1" bg="#ffffff" gravity="left" textSize="12sp"  textColor="#FF0000"/>
                        </horizontal>
                        <button id="ok" w="*" text="保存参数并启动脚本" style="Widget.AppCompat.Button.Colored" textSize="14sp" />
                    </vertical>
                    <vertical margin="5">
                        <text text="挂机设置:" textSize="15sp" textSytle="bold" textColor="#000000"/>
                        <text text="当前安卓版本:{{安卓版本}},提示:若低于7,则需手机root权限。" textSize="12sp" marginTop="5" textColor="#000000"/>
                    </vertical>
                    <horizontal>
                        <Switch id="autoService" text="无障碍模式" w="auto" checked="{{auto.service != null}}" padding="5" textSize="12sp"/>
                    </horizontal>
                    <horizontal>
                        <text textSize="12sp" textColor="#000000"  text="定位城市:" padding="5" />
                        <input id="定位城市" hint="定位城市" text="武汉" textSize="12sp" textColor="#000000" />
                    </horizontal>
                    <vertical>
                        <horizontal>
                            <text padding="5" textSize="12sp"  textColor="#000000" text="滑块打码设置: " />
                            <input id="打码帐号" hint="打码帐号" text="" w="90" gravity="center" size="12" />
                            <text textSize="12sp"   text="," />
                            <input id="打码密码" hint="打码密码" text="" w="90" gravity="center" size="12" />
                        </horizontal>
                        <horizontal>
                            <text padding="5" textSize="12sp" textColor="#000000">滑块打码选择:</text>
                            <spinner id="滑块模式" entries="本地打码|联众打码" padding="0" textSize="12sp" />
                        </horizontal>
                    </vertical>
                    <horizontal>
                        <text padding="5" textSize="12sp" textColor="#000000">手机型号:</text>
                        <spinner id="sp1" entries="真机|小米2S|其它|杂牌" padding="0" textSize="12sp" textColor="#000000" />
                    </horizontal>
                    <horizontal>
                        <text padding="5" textSize="12sp" textColor="#000000">是否自动创建分身:</text>
                        <spinner id="autoCread" entries="不自动|自动" padding="0" textSize="12sp" textColor="#000000" />
                    </horizontal>
                    <horizontal>
                        <text padding="5" textSize="12sp" textColor="#000000">找不到分身是否跳过:</text>
                        <spinner id="是否跳过" hint="是否跳过删除分身" entries="跳过|不跳过" padding="0" textSize="12sp" textColor="#000000" />
                    </horizontal>
                    <horizontal>
                        <text padding="5" textSize="12sp" textColor="#000000">本轮刷哪里的视频:</text>
                        <spinner id="是否进入音悦台" hint="是否进入音悦台" entries="推荐|音乐台|指定链接" padding="0" textSize="12sp" textColor="#000000" />
                    </horizontal>
                    <horizontal>
                        <text padding="5" textSize="12sp" textColor="#000000">是否显示帐号金额:</text>
                        <spinner id="显示帐号金额" hint="显示帐号金额" entries="否|是" padding="0" textSize="12sp" textColor="#000000" />
                    </horizontal>
                    <horizontal>
                        <text padding="5" textSize="12sp" textColor="#000000">是否签到并记录帐号金额:</text>
                        <spinner id="记录帐号金额" hint="记录帐号金额" entries="否|是" padding="0" textSize="12sp" textColor="#000000" />
                    </horizontal>
                    <horizontal>
                        <text textSize="12sp" textColor="#000000"  text="本机帐号总数量:" padding="5" />
                        <input id="帐号数量" hint="帐号数量" text="12" textSize="12sp" textColor="#000000" />
                        <text textSize="12sp" textColor="#000000"  text="个" padding="5" />
                    </horizontal>
                    <horizontal>
                        <text textSize="12sp" textColor="#000000"  text="单帐号运行时间:" padding="5" />
                        <input id="运行时间" hint="运行时间" text="10800" textSize="12sp" textColor="#000000" />
                        <text textSize="12sp" textColor="#000000"  text="秒" padding="5" />
                    </horizontal>
                    <horizontal>
                        <text textSize="12sp" textColor="#000000"  text="检测红包不转秒数:" padding="5" />
                        <input id="检测红包" hint="检测红包不转时间" text="60" textSize="12sp" textColor="#000000" />
                        <text textSize="12sp" textColor="#000000"  text="秒" padding="5" />
                    </horizontal>
                    <horizontal>
                        <text textSize="12sp" textColor="#000000"  text="自动建分身数量:" padding="5" />
                        <input id="分身数量" hint="分身数量" text="10" textSize="12sp" textColor="#000000" />
                        <text textSize="12sp" textColor="#000000"  text="个" padding="5" />
                    </horizontal>
                    <horizontal>
                        <text textSize="12sp" textColor="#000000"  text="限定金额跳过不跑:" padding="5" />
                        <input id="限定金额" hint="限定金额" text="" textSize="12sp" textColor="#000000" />
                    </horizontal>
                    <horizontal>
                        <text textSize="12sp" textColor="#000000"  text="指定视频连接:" padding="5" />
                        <input id="指定视频连接" hint="指定视频连接" text="" textSize="12sp" textColor="#000000" />
                    </horizontal>
                </vertical>
            </card>
        </vertical>
    </scroll>
</vertical>
);

//全局变量**/
var g_当前脚本版本号 = 5212;
var g_是否自动更新 = 0;
var g_宽度 = parseInt(device.width);
var g_高度 = parseInt(device.height);
var g_帐号数量 = 12;
var g_运行时间 = 10800;
var g_是否申请截图权限 = 0;
var g_脚本帐号 = “”;
var g_脚本密码 = “”;
var g_设备型号 = 0;
var g_滑块处理模式 = 0;
var g_红包不转的次数 = 0
var g_分身数量 = 0;
var g_自动创建分身 = 0;
var g_看视频中红包不转的次数 = 0;
var g_检测秒数 = 0;
var g_联众帐号 = “”;
var g_联众密码 = “”;
var g_是否跳过 = 0;
var g_是否进入音悦台 = 0;
var g_显示帐号金额 = 0;
var g_记录帐号金额 = 0;
var g_限定金额 = 20;
var g_指定视频连接 = “”
var g_链接数组 = [];
var g_拖动上面Y座标 = 0;
var g_拖动下面Y座标 = 0;
var g_定位城市 = “武汉”;
var g_是否不继续执行强行停止命令 = 0;
/加载UI设置*****/

files.create("/sdcard/ks/")
files.create("/sdcard/ks/money/")
files.create("/sdcard/ks/stop/")

//打码模式
if (!files.exists("/sdcard/ks/LzMode.txt")) {
g_滑块处理模式 = 0;
} else {
console.log(“滑块模式=” + files.read("/sdcard/ks/LzMode.txt"));
ui.滑块模式.setSelection(files.read("/sdcard/ks/LzMode.txt"))
}

//是否进入音悦台
if (!files.exists("/sdcard/ks/IsYyt.txt")) {
g_是否进入音悦台 = 0;
} else {
ui.是否进入音悦台.setSelection(files.read("/sdcard/ks/IsYyt.txt"))
}

//显示帐号金额
if (!files.exists("/sdcard/ks/IsShowMoney.txt")) {
g_显示帐号金额 = 0;
} else {
ui.显示帐号金额.setSelection(files.read("/sdcard/ks/IsShowMoney.txt"))
}

//记录帐号金额
if (!files.exists("/sdcard/ks/IsQianDao.txt")) {
g_记录帐号金额 = 0;
} else {
ui.记录帐号金额.setSelection(files.read("/sdcard/ks/IsQianDao.txt"))
}

//设备型号
if (!files.exists("/sdcard/ks/phonexh.txt")) {
g_设备型号 = 0;
} else {
ui.sp1.setSelection(files.read("/sdcard/ks/phonexh.txt"))
}

//g_是否跳过
if (!files.exists("/sdcard/ks/Istiao.txt")) {
g_是否跳过 = 0;
} else {
console.log(“分身模式=” + files.read("/sdcard/ks/Istiao.txt"));
ui.是否跳过.setSelection(files.read("/sdcard/ks/Istiao.txt"))
}

//定位城市
if (!files.exists("/sdcard/ks/city.txt")) {
ui.定位城市.setText("");
} else {
ui.定位城市.setText(获取城市名字());
}

ui.指定视频连接.setText("");
//运行时间
if (!files.exists("/sdcard/ks/JbTime.txt")) {
ui.运行时间.setText("");
} else {
ui.运行时间.setText(获取脚本运行时间());
}
//检测红包不转秒数
if (!files.exists("/sdcard/ks/redTime.txt")) {
ui.检测红包.setText("");
} else {
let 红包不转时间=获取红包不转时间();
if(""==红包不转时间){
ui.检测红包.setText(“5”);
}else{
ui.检测红包.setText(红包不转时间);
}
}
//联众帐号
if (!files.exists("/sdcard/ks/LzAccount.txt")) {
ui.打码帐号.setText("");
} else {
ui.打码帐号.setText(获取联众帐号());
}

//联众密码
if (!files.exists("/sdcard/ks/LzPswd.txt")) {
ui.打码密码.setText("");
} else {
ui.打码密码.setText(获取联众密码());
}

//联众偏移量
if (!files.exists("/sdcard/ks/xdje.txt")) {
g_限定金额 = 0;
ui.限定金额.setText(“20”);
} else {
ui.限定金额.setText(获取限定金额());
}

ui.日志.click(function() {
app.startActivity(‘console’)
})
//自动创建分身
ui.autoCread.setSelection(0);

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;
}
ui.ok.click(function () {
if (auto.service == null) {
toastLog(“请先开启无障碍服务!”);
return;
}
let kami=ui.login_km.text()
let md5KaMi=MD5(kami);
if(!md5KaMi.match(“c1137ed27c299323c8a0dd7c279220c7”)){
toastLog(“卡密错误,请前往zwk365.com获取卡密”)
return
}
var 设备型号 = ui.sp1.getSelectedItemPosition();
g_设备型号 = 设备型号
files.write("/sdcard/ks/phonexh.txt", g_设备型号);
g_帐号数量 = parseInt(ui.帐号数量.getText());
g_指定视频连接 = ui.指定视频连接.getText();
g_运行时间 = parseInt(ui.运行时间.getText());
g_检测秒数 = ui.检测红包.getText();
g_联众帐号 = ui.打码帐号.getText();
g_联众密码 = ui.打码密码.getText();
g_限定金额 = parseInt(ui.限定金额.getText());
g_滑块处理模式 = parseInt(ui.滑块模式.getSelectedItemPosition());
g_是否跳过 = parseInt(ui.是否跳过.getSelectedItemPosition());
g_是否进入音悦台 = parseInt(ui.是否进入音悦台.getSelectedItemPosition());
g_显示帐号金额 = parseInt(ui.显示帐号金额.getSelectedItemPosition());
g_记录帐号金额 = parseInt(ui.记录帐号金额.getSelectedItemPosition());
g_定位城市 = ui.定位城市.getText();
files.write("/sdcard/ks/city.txt", g_定位城市);
files.write("/sdcard/ks/IsShowMoney.txt", g_显示帐号金额);
files.write("/sdcard/ks/IsQianDao.txt", g_记录帐号金额);
files.write("/sdcard/ks/IsYyt.txt", g_是否进入音悦台);
files.write("/sdcard/ks/xdje.txt", g_限定金额);
files.write("/sdcard/ks/LzAccount.txt", g_联众帐号);
files.write("/sdcard/ks/LzPswd.txt", g_联众密码);
files.write("/sdcard/ks/redTime.txt", g_检测秒数);
files.write("/sdcard/ks/redTime.txt", g_检测秒数);
files.write("/sdcard/ks/JbAcction.txt", g_脚本帐号);
files.write("/sdcard/ks/JbTime.txt", g_运行时间);
files.write("/sdcard/ks/JbCount.txt", g_帐号数量);
files.write("/sdcard/ks/LzMode.txt", g_滑块处理模式);
files.write("/sdcard/ks/Istiao.txt", g_是否跳过);
toastLog(“g_滑块处理模式=” + g_滑块处理模式)
g_分身数量 = parseInt(ui.分身数量.getText());
toastLog(“g_分身数量=” + g_分身数量)
toastLog(“g_检测秒数=” + g_检测秒数)
g_自动创建分身 = parseInt(ui.autoCread.getSelectedItemPosition());
toastLog("自动创建 = " + g_自动创建分身);
if (g_自动创建分身 > 0) {
threads.start(自动创建分身);
} else {
threads.start(主函数);
}
})

function 卸载黑屏脚本() {
var name = getAppName(“ks.hp.com”); //返回"QQ"
toastLog(“名字 =” + name)
if (!name) {
toastLog(“手机上没有安装!”);
return true;
} else {
app.uninstall(“ks.hp.com”);
sleep(1000);
for (var i = 0; i < 6; i++) {
if (id(“button1”).exists()) {
try {
if (id(“button1”).findOne(1000).click()) {
return true;
}
} catch (e) { }
}

        if (id("continue_button").exists()) {
            try {
                if (id("continue_button").findOne(1000).click()) {
                    return true;
                }
            } catch (e) { }
        }
    }

}
return false;

}
//***/
//正文代码/
//
/

ui.jiaqunBtn.click(function(){
app.openUrl(“https://zwk365.com/3018”);
})

ui.autoService.click(function() {
// 用户勾选无障碍服务的选项时,跳转到页面让用户去开启
if (auto.service == null) {
app.startActivity({
action: “android.settings.ACCESSIBILITY_SETTINGS”
});
}
if (auto.service != null) {
auto.service.disableSelf();
}
});
function 是否刷新出滑块了() {
for (var i = 0; i < 60; i++) {
sleep(1000);
if (className(“android.widget.Image”).indexInParent(2).exists()) {
return true;
}
}
}
/“liping200”,“Liping200…”/
function 联众处理滑块(username, password) {
var 过滑块次数 = 0;
for (var i = 0; i < 10; i++) {
if (text(“拖动滑块”).exists()) {
过滑块次数 = 过滑块次数 + 1
if (过滑块次数 < 5) {
if (是否刷新出滑块了()) {
captureScreen("/sdcard/ks/1.png");
sleep(1000);
var src = images.read("/sdcard/ks/1.png");
var clip = images.clip(src, 48, 258, 1032, 834);
if (g_宽度 == 1080) {

                } else if (g_宽度 == 720) {
                    clip = images.clip(src, 32, 174, 688, 556);
                } else {
                    clip = images.clip(src, 64, 296, 1376, 1064);
                }
                images.save(clip, "/sdcard/ks/clip.png");
                toastLog("联众处理滑块,帐号=" + username + ",密码 = " + password);
                try {
                    var 终点x座标 = parseInt(getCode(username, password, images.read("/sdcard/ks/clip.png")).data.res.split("'")[0]);
                    toastLog("终点x座标=" + 终点x座标);
                    if (device.width == 1080) {
                        console.hide();
                        sleep(1000);
                        randomSwipe(90, 960, 终点x座标 + 40, 960)
                    } else if (device.width == 1080) {
                        console.hide();
                        sleep(1000);
                        randomSwipe(60, 640, 终点x座标 + 28, 640)
                    } else {
                        log("3333")
                        var 座标 = 终点x座标 + 50 + 90;
                        randomSwipe(166, 1260, 座标, 1260)
                    }
                } catch (e) { }
            }
        } else {
            return false;
        }
    } else {
        return true;
    }
}

}
function 滑块处理模式() {
console.info(“滑块处理模式”)
if (g_滑块处理模式 == 0) {
if (滑块处理()) {
console.setSize(device.width / 2.4, device.height / 3);
console.setPosition(g_宽度 / 1.6, g_高度 / 1.7);
return true;
} else {
console.setSize(device.width / 2.4, device.height / 3);
console.setPosition(g_宽度 / 1.6, g_高度 / 1.7);
return false;
}
} else {
if (联众处理滑块(获取联众帐号(), 获取联众密码())) {
console.setSize(device.width / 2.4, device.height / 3);
console.setPosition(g_宽度 / 1.6, g_高度 / 1.7);
return true;
} else {
console.setSize(device.width / 2.4, device.height / 3);
console.setPosition(g_宽度 / 1.6, g_高度 / 1.7);
return false;
}
}
}
function 获取服务器上的版本号() {
try {
var url = “https://slllp888.oss-cn-hangzhou.aliyuncs.com/migu/banben.txt”
var r = http.get(url).body.bytes();
files.writeBytes("/sdcard/ks/banben.txt", r)
var 服务器版本号 = files.read("/sdcard/ks/banben.txt");
toastLog(“服务器上的版本号=” + 服务器版本号);
return 服务器版本号;
} catch (e) { }
}

function 获取打码帐号() {
var str帐号 = “”
if (files.exists("/sdcard/ks/Acction.txt")) {
str帐号 = files.read("/sdcard/ks/Acction.txt");
}
return str帐号;
}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章