刘小帅

触漫js自动私信
var a1 = id("user_avatar").find(); var b1 = a1...
扫描右侧二维码阅读全文
22
2020/02

触漫js自动私信


var a1 = id("user_avatar").find();
var b1 = a1.length -1;
var number1 = 0

while (true){
    for (number=0;number<b1;number++){
        if (id("user_avatar").exists()){
            var c1 = a1[number];
            var d1 = c1.bounds();
            click (d1.centerX(),d1.centerY());
            sleep(2000)
        }
        
        if (id("iv_contact").exists()){

            id("iv_contact").findOne().click();
            sleep(2000)
        }else{
            back();
            sleep(1000)
            continue;
        }
    
        if(id("et_input").exists()){
            
            id("et_input").findOne().click();
            sleep(1000)
            setText("私信内容");
            sleep(1000)
            id("btn_send").findOne().click();
            sleep(1000)
            number1++;
            log(number1);
            sleep(1000)
            back();
            sleep(1000)
            back();
            sleep(1000)
            back();
            sleep(1000)
        }else{
            back();
            sleep(1000)
            continue;
            }


    }
    var i = device.height/1.2 //获取设备高度
    var u = device.height/4
    swipe(500,i,500,u,400)
    sleep(2000)
    className ("android.support.v7.widget.RecyclerView").scrollForward()
    sleep(2000)
    className ("android.support.v7.widget.RecyclerView").scrollForward()
    sleep(2000)
}




Last modification:February 22nd, 2020 at 03:46 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment