AutoJS4.1.0 combat tutorial --- love to walk

Love to walk invitation code: A1029182999, see the article plus focus plus ... do not have to share the invitation code just fine. Again Friendly reminder: A1029182999

This App is better. Recommend walking together and small video look. Watch the video will pop up ads, video ads are more fortunate ID is fixed and can be directly obtained.

        
if (className("android.widget.ImageView").id("iv_close").exists()) {
    toastLog("关闭广告");
    className("android.widget.ImageView").id("iv_close").findOnce().click();
}

Other code I've written for everyone to share.

auto.waitFor (); 
app.launchApp ( 'love walking' ); 
console.show (); // open the log (floating window rights) 
console.info ( "walking into the love" ); 
SLEEP ( 5000 );
 IF (className . ( "android.widget.TextView") ID ( "goto_login" ) .exists ()) { 
    console.info ( "click to receive coins" ); 
    the let B . className = ( "android.widget.TextView") ID ( " goto_login " ) .findOnce (.) bounds (); 
    the Click (b.centerX (), b.centerY ()); 
    SLEEP ( " 3500 " );
     IF (className (" android.widget.TextView "). text (" abandon convertibility " ).EXISTS ()) { 
        the let B = className ( "android.widget.TextView"). text ( "convertibility into"(.) bounds ();) .findOnce 
        the Click (b.centerX (), b.centerY ()); 
    } 
    IF . (className ( "android.widget.TextView") ID ( "tv_close_btn" ) .exists ()) { 
        the let B = className ( "android.widget.TextView") ID ( "tv_close_btn." ) .findOnce () bounds ();. 
        the click (b.centerX (), b.centerY ()); 
    } 
} 
// clicks love money were to sign 
IF (className ( "android.widget.TextView") text ( "love money." {) .exists ()) 
    console.info ( "click love money" ); 
    the let b = className ( "android.widget .TextView ".) text (" love money " ) .findOnce () bounds ();. 
    the Click (b.centerX (), b.centerY ());
    sleep("5000");
    if(className("android.view.View").id("dd").exists()){
        className("android.view.View").id("dd").findOnce().click();
    }
}
if (className("android.widget.ImageView").id("iv_close").exists()) {
    toastLog("关闭广告");
    className("android.widget.ImageView").id("iv_close").findOnce().click();
}
//点击爱视频
if(className("android.widget.TextView").text("爱视频").exists()){
    console.info("点击爱视频");= className ( "android.widget.TextView"). text ( "Love Video"
    b the let).findOnce().bounds();
    click(b.centerX(),b.centerY());
    sleep("5000");
    let see_count=100;
    for (var i = 1; i < see_count; i++) {
        toastLog("爱走路爱视频滑动" + i + "次" + "总计:" + see_count + "次");
        if (className("android.widget.ImageView").id("iv_close").exists()) {
            className("android.widget.ImageView").id("iv_close").findOnce().click();
        }
        swipe(device.width / 2, device.height - 200, device.width / 2, 500, 700);
        let delayTime= Random (5000, 10000 ); 
        sleep (delayTime); 
    } 
}

 

Guess you like

Origin www.cnblogs.com/zy0412326/p/12640658.html