Autojs script code complete (actual exercise 2)

/*
*@More basics will not add autojs exchange group 553908361;
one-click add group: click to add group
// Dark horse school script resource network disk pan.jiaoben.info More source code release, the network disk contains a full set of development tools, At the same time, there is a communication environment in the
group.//This code is provided by the Dark Horse School Script Resource Network (http://jiaoben.info)
Insert picture description here

This is a

Intermediate interface jump

Source code, as a multifunctional jump
Insert picture description here

"ui";
 //此代码由黑马学府脚本资源网整理提供(http://jiaoben.info)
ui.layout(
    <vertical gravity="center" bg="file://1.jpg">


                <button id="dyyh" textColor="#00F5FF" textSize="30sp"style="Widget.AppCompat.Button.Borderless"text="养号助手"/>

        <button id="dysh" textColor="#00F5FF" textSize="30sp"style="Widget.AppCompat.Button.Borderless"text="抖音上号"/>


            <button id="dyyx" textColor="#00F5FF"textSize="30sp" style="Widget.AppCompat.Button.Borderless"text="营销助手"/>     
            <button id="ptrj" textColor="#00F5FF" textSize="30sp"style="Widget.AppCompat.Button.Borderless"text="配套软件"/>



            </vertical>

);
ui.ptrj.click(function() {
    toastLog("请打开前往网址下载配套软件")
    //把双斜杠去掉,然后把双引号的网址,修改为你的就行了
       app.openUrl("https://wwa.lanzous.com/b0aqufvcf")
    
    });
ui.dyyh.click(function() {
        //抖音养号助手
        
      
        var ss="./dyyh.js";
        engines.execScriptFile(ss)
        
        });
ui.dyyx.click(function() {
                //抖音引流
                toastLog("等待开发")
         return
                var ss="./css.js";
                engines.execScriptFile(ss)
                
                });
ui.dysh.click(function() {
                    //抖音上号
                    toastLog("加载")
             
                    var ss="./dysh.js";
                    engines.execScriptFile(ss)
                    
                    });
            

In fact, you can see that most of the code is repeated. You guessed it. Just copy and paste

            <button id="dyyh" textColor="#00F5FF" textSize="30sp"style="Widget.AppCompat.Button.Borderless"text="养号助手"/>
            //定义一个按钮文字,大小,颜色
            
       ui.dyyh.click(function() {
    //抖音养号助手
  var ss="./dyyh.js";
    engines.execScriptFile(ss)
    
    });
    //点击事件.ui.id名字.click(function() {
    //点击代码 
    });
    engines.execScriptFile("./脚本名字.js")

It is a combination of these codes. In fact, I think that learning a new thing does not require you to understand

Department, at the beginning, imitate others' first, and slowly modify.

Then you gradually decompose the whole into large components. Use these commonly used components. At this time,

You should have already started. In this process, if you don't understand the specific code, you must check the documentation.

Check it out more, take notes, and you will understand. It won’t be too difficult. As long as you don’t find it difficult. Then use tasks

Come to force learning,

Progress soon

Guess you like

Origin blog.csdn.net/qq_30931547/article/details/113058449