Autojs自动化 实现自动删除公众号文章(通过订阅号助手删除)

时间:2024-11-14 11:15:33

设备

小米9

效果

autojs1

 

autojs2

代码

UI


"ui";
const storage = ("dinyue");
auto()

var search_value = ''

if(('search_value')){
    search_value = ('search_value')
}


(
    <vertical padding="30">
        <text textSize="16sp">输入要匹配的关键字</text>
        <input  text="{{search_value}}"/>
    </vertical>
);


//创建新的线程
(function () {
    createFloaty();
});




/**
 * 设置悬浮窗
 */
function createFloaty() {
    // const Utils = require('lib')

    window = (
        <vertical>
            <vertical  bg="#000000" alpha="0.5" w="50" h="52" gravity="center">
                <img w="30" h="30" layout_gravity="center" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAcMUlEQVR4Xu1dCbAtVXVdK6U4V0SloqaMsRzQqEFxAAURAuIchQQcIgqCkSg4IApKFDGg8B0QBxwCCKJG4wAGRURQBEFwQgwIOIEaZ1SMiQMaV2o9T3/uf//d97rv3ef0cHtXdT3xn95n73163TPtgRgpmwUk3QbA5um5E4Bb1Hgszy9rPFcBuNIPyWuyKbHgjLng+oeoL6kCwd0nAOH/zwApQQbIEljSc0UCjv97pDksMAKkofEk3QrA/QE8BMB26WnIpWjzcwH4OQ/AF0j+rGjvPe9sBMgaAyjpzgAekJ5tAGzV8zG/CMD5AD7vh+Q3e65PVvFHgKxgXkk7AngsAP+9V9YRaJ/5pQDOBnAaSf8dacICI0CSMSRtDeAx6dliQb+SSwB8xA/JCxfUBhuovdAAkeTZoQKFl08jXW8BL8MqsHiWWUhaOIBI2gTAXgB2BbDzQo56c6XPBPAhAO8geV3z1/v7xsIARNKmAJ6ewHHP/g5Zq5JfZpAAOIHkz1uVpFDngweIpDskUHjW+MtCdh16N1cnoHhG+e6QlR0sQCT50q6aMUpd2A35W1lJN19QVjOKLycHR4MDiKT7AtgnzRo3GdyIdVOhXyegHEfy4m6KOJtUgwGIpBsBOCg9N53NHONbc1rgVwCO8kPyt3Py6sTrgwCIpN0AvCi5gHT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gE0DZdGJGyZ0Os7sjPp9kPo0yMDxjLERW/YUByARQNkmziUt07Tzf97Iwb5+ZCiN5xrhuYbQe4ia9yeCl0FInjfCzTZN3F6Cts+U7qtJJEy5dAH1XVHHhZpBpAy1p6wQUg2WLBf0g7IlcgcIu/AtPI0BW+AQk7QjAqWYcUzH0/Yr3FWcBOG3MFbbxxzACZI3fSEl2Lffs4seReCVzC+f4Bfc9hXOBeYa4kKQT+I00xQIjQBp+GpJ8p2JPYu9Zqqchl6LNvZeongtI+u5ipJoWGAFS01CrNUuzTBXE5L/VU+qC0h+9Z4Lq8aXdlePsMP/gjgCZ34ZTOaTZpgLLnQDcosZjfr+s8VxVAWKcFfIN4v8DjrHRMqG8jI0AAAAASUVORK5CYII=" />
                <text text="开始" textColor="white" textSize="10" gravity="center" />
            </vertical>
            <vertical  bg="#000000" alpha="0.5" w="50" h="52" gravity="center" marginTop="20">
                <img w="30" h="30" layout_gravity="center" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAaGElEQVR4Xu2dCdBsRXXH//+UgppYAZWKmDKGUgEjBEUUlEUIi4IShQRcEg1PTDSuAVFAVMBAhKeCuCAqi0hiUIygKCKCssjmwhOECLiAcY9PwVARwVRO6j/pecz3fbPcnnv6TvdMn6pbI76+p7tP39/X+zlElWQWMLOHAdgsPJsAeHCDR+W5q8FzG4Bb9JBcm6wSC66YC15/l+qbWR+CzQeA0P8nQLoQAdKDJTw3B3D031VaWKACEmk8M3sIgG0A7Ahgp/BEauk0+eUA9FwB4Gskf9lp7oVnVgGZ0IBm9mgATw7P9gC2LbzNrwVwJYCv6iH53cLrk7T4FZAh5jWzXQHsDUC/WyRtgdkrvxHAJQDOJ6nfKgMWqIAEY5jZdgCeHZ6tFvQruR7AZ/SQvGZBbbCk2gsNiJmpd+hDoeFTlfssoGFYHxb1MgspCweIma0HYBWAfQHssZCtHl/piwB8EsAZJO+Nf73cNxYGEDPbEMBLAhyPL7fJZlrymw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EVTQ9byrndNQC0r3IxyZ97KG2jw8zuB2C38Mipn8DIVdyvyXpWNGtAMh5yjWuD68Mlrm8B6D0kv+3ZaIO6zEzhuRVsRo820/Tb6Q73lHXLcki1vC7ZA1LAkKvJ9/E/fVjC728AjHseAGDc0wdBMChdaZLtkKpIQAobcpX2sXZd3qyHVEUDEnoTXcaRd4xUDrO7/mAWJT85kl7d1ldu18YqYoi13ChmpnIfGp4U8Um6bod5zk/xOXQ3XZGMZ3GKu5VtiwRkYMglhwACJVWkq1bGrS/jrADGVMFrcrBf0YAMgKKoRBp2pQgsmkM7lVYGBczUcCo6JmBuFZ0LQMLcRNF3+8OuFHHcc2u7HMujOOT94VRUNNkcK6MyzQ0gA72J7rzrePYqAA/M1fBzVi75JdMZulNJrpmnus0dIAOgaI9AroYESteXfObpGxlXl7UBDLnguXkeKz23gAyAIjc0gkSPdp2rtLeAAquqxziD5A/aq8tXw9wDMgDKhgM9Smp3mPm2eLuSaTVKYKjHWAiv+gsDyAAo64XeRCG69mj3vSzM2xeFwEjqMe5dmFrP4yQ9pvHC1VI5jdCzfcy7C5BW3vJ1q1JOE25cgPoOreLC9SCjGtrMtgugCJatFvSD0EnkPhQ6wr/wUgEZ8gmY2a4A5GpGdyrmfb6iecXFAM6vvsJWfgwVkAl/I81MR8vVu+jRTbwufQun+AuufQr5AlMPcQ1JOfCrMsICFZDIT8PMtKeik8Sas/SfSC2dJtdcov9cRVJ7F1UaWqAC0tBQ45KFXqZ/iUm//aerDUp99OoJ+o827W6pvUP7xq2AtLfhSA2ht+nDsgmABzd4pO+uBs9tfSBqr5CuEf8PZudRMiaoc30AAAAASUVORK5CYII=" />
                <text text="结束" textColor="white" textSize="10" gravity="center" />
            </vertical>
            {/* <vertical  bg="#000000" alpha="0.5" w="50" h="52" gravity="center" marginTop="20">
                <img w="30" h="30" layout_gravity="center" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAR4UlEQVR4Xu2dC/BuU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MUI+kHyLjkCx2frkAqTHquixK0rfx/qKiD/fYaShApj+T7BIyyo+XEiAVR1wOxUh6RsVLK/jyIzPz1KmaQSqItaIIycUypQiQqgJmUq7Gd5L1zeymkduaQSoEkKS/3Vj4ClCAVNAttyIkPQ/XCTP8OsjMzhQgNaNH0tf7+LofNwFSU79cipP8BABPWjfJzjOzlWdiagapETmSo0wpAqSGbrkVJelHZ0zaKHWzmfnKihUmQGpGLyyM29nMltS8VMUzUYDkrEOYnm5m1wqQhgEjeZyZzbqXbVi7LkuhQFiS4jOJn7c4bu8wM0/0oRkkRTDURp4KkPQNc75xbtxW3kLrFivP2MmrRAqQPBTAx8aau83M/Cu8ZpBEcVAzGStA0vNuvWPMxSeY2a81g2QcOLmWToFFst3sa2ZLBUi6GKiljBUguQaAKxYcL36amR0pQDIOmlxLqwBJ/zbib7bcVjyoC5C0MVBrmStA8iQAbwOw4kFdgGQeMLmXXgGSPwDwLL/dEiDp9VeLmStA8mkArgNwoADJPFhyrxsFSL5pRaaTbppXq1IgfwVIni9A8o+TPOxIAT9YVIB0JL6aLUMBAVJGnORlRwoIkI6EV7NlKCBAyoiTvOxIAQHSkfBqtgwFBEgZcZKXHSkgQDoSXs2WoYAAKSNO8rIjBQRIR8Kr2TIUECBlxEledqSAAOlIeDVbhgICpIw4ycuOFPg/sYqk3qIb/x8AAAAASUVORK5CYII=" />
                <text text="返回" textColor="white" textSize="10" gravity="center" />
            </vertical> */}

        </vertical>


    );

    window1 = (
        <vertical gravity="bottom">
            <text  text="运行状态" textColor="white" bg="#00CD66" alpha="0.5"
                w="*" h="*" gravity="center" />
        </vertical>

    );

    ();
    (200, 400);
    ( - 1080, /10);
    ();
    (false);
    (,  / 4);
    (0,  -  / 4);
    //点击返回
    // (() => {
    //     ("");
    //     ().forceStop();
    // });
    //点击停止
    (() => {
        // if (thread) {
        //     ();
        // }
        // ("已停止");
        ()
    });
    //点击开始
    (() => {
        ("正在运行");
        thread = (function () {
            let search_val = ()
            if(search_val.trim().length==0){
                toast('请填写要匹配的关键字')
            }else{
                ('search_value',search_val)
                ("./",{delay:2000});
            }
            
        });
    });

}

const Utils = require('lib');
const storage = ("dinyue");
// 编写主函数:程序启动后执行的逻辑代码。
function main() {
    sleep(2000)
    let search =('search_value')
    while(!Utils.wait_for_num('互动',1)){
        back()
    }
    sleep(2000)
    click(535, 2120)
    sleep(2000)
    click(945, 1065)
    sleep(2000)
    Utils.click_item('已发表内容',[700,0])
    setText(search)
    click(995, 1510)
    sleep(2000)
    // sleep(3000)

    // Utils.click_item('【宁大晚安】')
    
    while(true){
        let items = textContains(search).find()
        if(()){
            Utils.swipe_up()
        }else{
            for(let index=1;index<;index++){
                if(items[index].parent().child(0).text().includes('已删除')){
                    continue
                }
                items[index].parent().child(1).click()
                sleep(1000)
                Utils.click_item('删除',[0,-100])
                sleep(1000)
                Utils.click_item('删除',[0,100])
            }
            Utils.swipe_up()
            sleep(1000)
        }
    }
}


// 启动应用:传入参数依次为:主函数,要启动的 App 名称,当前应用描述,是否语音播报执行状态。
Utils.start_app(main, '订阅号助手', '订阅号助手', false,false)

 

/**
 * 仓库:/kangour/autojs_sdk
 */

operation_app = ''
window = {
    width: ,
    height: ,
}

/**
 * 权限管理
 */
();
setScreenMetrics(, );
if (!requestScreenCapture()) {
    log('Screen capture fail');
    exit();
}

/**
 * 通知栏提示
 */
let runing_tip = (
    <frame gravity="center" bg="#CC999999">
        <text padding="5 0 5 0" w="auto" h="auto"  textColor='#FFFFFF'></text>
    </frame>
)
runing_tip.setPosition(220, 5);
runing_tip.setTouchable(false);

/**
 * 通知栏提示内容设置
 * @param {*} _text 提示文本
 */
function set_runing_tip(_text) {
    (function () {
        runing_tip.(operation_app + _text);
    });
}

/**
 * 修改通知栏提示的坐标
 * @param {*} _text 提示文本
 */
function set_runing_tip_position(x, y) {
    runing_tip.setPosition(x, y);
}

/**
 * 开始结束提示
 */
function start_tip(this_app) {
    warn('开始执行', this_app)
    vibrate(100)
}
function end_tip(operation_app) {
    warn(operation_app, '执行完成')
    vibrate(300)
}
// 普通上滑解锁
// /**
//  * 解锁
//  */
// function unlock() {
//     while (true) {
//         // 唤醒屏幕
//         if (!()) {
//             log('Wake up')
//             ();
//             // 避开锁屏界面的弹窗
//             back()
//         }
//         if (has_text('画报')) {
//             warn('尝试解锁')
//             swipe(500, 1600, 100, 500, 200);
//             sleep(500)
//         } else {
//             warn('解锁成功')
//             break
//         }
//     }
//     log('Unlocked')
//     sleep(800);
//     back() // 避开解锁后界面的弹窗
//     sleep(800)
// }

// MUI10 解锁
function unlock() {
    // 唤醒屏幕
    if (!()) {
        log('Wake up')
        ();
        // 避开锁屏界面的弹窗
        back()
    }
    sleep(800)
    if (has_text('画报')) {
        warn('尝试解锁')
        //下拉状态栏
        swipe(500, 30, 500, 1000, 300);
        sleep(400);
        //点击时间
        click(100, 120);
        sleep(400);
        //解锁 密码 
        desc(2).findOne().click();
        desc(3).findOne().click();
        desc(6).findOne().click();
        desc(9).findOne().click();
        //等待解锁完成
        text('闹钟').waitFor();
        warn('Unlocked')
        //返回主页
        home();
    }
}

/**
 * 获取文本类型,分别有 text、desc
 * @param {string} _text 需要查询的文本
 */
function get_text_type(_text) {
    for (i = 5; i > 0; i--) {
        if (textContains(_text).exists()) {
            return 'text'
        } else if (descContains(_text).exists()) {
            return 'desc'
        } else {
            // verbose(_text, '不存在 ' + i)
            sleep(200)
        }
    }
    return null
}

/**
 * 当前屏幕是否存在文本
 * @param {*} _text 需要查询的文本
 */
function has_text(_text) {
    set_runing_tip('find ' + _text)
    point = get_coord_by_text(_text, 'no_tip')
    if (point != null &&  > 0 &&  <  &&  > 0 &&  < ) return true
    return false
}

/**
 * 设备音量
 * @param {*} number 
 */
function set_volume(number) {
    (() / 100 * number)
}

/**
 * 震动控制
 * @param {*} duration 震动时长
 * @param {*} times 震动次数
 * @param {*} delay 两次间的延迟
 */
function vibrate(duration, times, delay) {
    if (delay == null) delay = 0
    if (times == null) times = 1
    for (i = 0; i < times; i++) {
        (duration);
        sleep(delay)
    }
}

/**
 * 操作失败后的提示弹窗,引导下一步操作
 * @param {*} callback 弹窗确认后执行的函数,一般出入执行失败的函数
 * @param {*} _text 
 */
function confirm_continue(callback, _text) {
    tts_report(_text + '失败')
    if (get_hours() < 9) {
        sleep(2000)
        callback(_text)
        return
    }
    vibrate(1000, 3, 0)
    if (confirm(_text + "不存在,2s 后重试?")) {
        toast('2s 后重试')
        sleep(2000)
        callback(_text)
    } else {
        if (confirm("继续下一步?")) {
            toast('2s 后继续')
            sleep(2000)
        } else {
            toastLog('手动结束运行')
            exit()
        }
    }
}

/**
 * 文本点击
 * @param {*} _text 待查询的文本
 * @param {*} fix_coord 修复坐标位置,传入一个数组,第一位是 x 坐标,第二位是 y 坐标。
 *                      应用中的页面结构决定了获取的坐标准确性,调试时,可以用开发者工具打开指针位置,查看点击位置是否正确,错误的点击位置则需要传入修复的坐标。
 *                      例如:[10, -10] 表示在点击时,x 右移 10 个点,y 上移 10 个点
 * @param {*} tip_type 未找到时,是否需要提示,传入 no_tip 则不提示
 */
function click_item(_text, fix_coord, tip_type) {
    if (fix_coord == undefined) fix_coord = [0, 0]
    wait_for(_text)
    log('(click) ' + _text)
    if (has_text(_text) == false && tip_type != 'no_tip') {
        confirm_continue(click_item, _text)
        return
    }
    text_type = get_text_type(_text)
    if (text_type == 'text') {
        click_text(_text, fix_coord)
    } else if (text_type == 'desc') {
        click_desc(_text, fix_coord)
    } else if (tip_type != 'no_tip') {
        error('Unknown type', text_type)
    }
}

/**
 * 任意类型的文本循环点击
 * @param {*} _text 待查询的文本
 * @param {*} tip_type 未找到时,是否需要提示,传入 no_tip 则不提示
 */
function click_item_each(_text, tip_type) {
    wait_for(_text)
    log('(click-each) ' + _text)
    if (has_text(_text) == false && tip_type != 'no_tip') {
        confirm_continue(click_item, _text)
        return
    }
    text_type = get_text_type(_text)
    if (text_type == 'text') {
        click_text_each(_text)
    } else if (text_type == 'desc') {
        click_desc_each(_text)
    } else if (tip_type != 'no_tip') {
        error('Unknown type', text_type)
    }
}

/**
 * 获取文本坐标,文本点击时自动调用
 * @param {*} _text 待查询的文本
 * @param {*} tip_type 未找到时,是否需要提示,传入 no_tip 则不提示
 */
function get_coord_by_text(_text, tip_type) {
    text_type = get_text_type(_text)
    btn = null
    if (text_type == null) {
        if (tip_type != 'no_tip') confirm_continue(get_coord_by_text, _text)
        return null
    } else if (text_type == 'text') {
        btn = textContains(_text).findOne()
        if (().centerX() == undefined) btn = textStartsWith(_text).findOne()
        if (().centerX() == undefined) btn = textEndsWith(_text).findOne()
    } else if (text_type == 'desc') {
        btn = descContains(_text).findOne()
        if (().centerX() == undefined) btn = descStartsWith(_text).findOne()
        if (().centerX() == undefined) btn = descEndsWith(_text).findOne()
    } else {
        if (tip_type != 'no_tip') error('Unknown type', text_type)
        return null
    }
    point = ()
    if (()) {
        return {
            x: (),
            y: ()
        }
    } else {
        sleep(800)
        return get_coord_by_text(_text, tip_type)
    }
}

function click_desc(_text, fix_coord) {
    point = get_coord_by_text(_text)
    click( + fix_coord[0],  + 10 + fix_coord[1]);
    sleep(800)
}

function long_click_desc(_text) {
    point = get_coord_by_text(_text)
    log('(long-click)' + _text)
    press(,  + 10, 800)
    sleep(500)
}

function click_desc_each(_text) {
    let btns = descContains(_text).untilFind();
    (function (btn) {
        let point = ();
        click((), () + 10);
    })
    sleep(800)
}

function click_text(_text, fix_coord) {
    btn = textContains(_text).findOne()
    let point = ();
    click(() + fix_coord[0], () + 10 + fix_coord[1]);
    sleep(800)
}
function click_text_each(_text) {
    let btns = textContains(_text).untilFind();
    (function (btn) {
        let point = ();
        click((), () + 10);
    })
    sleep(800)
}

function has_color(_color, x, y, w, h) {
    return find_color(_color, x, y, w, h)
}

function find_color(_color, x, y, w, h) {
    if (x == undefined) {
        x = 0
        y = 0
        w = 
        h = 
    }
    image = captureScreen();
    let point = findColorInRegion(image, _color, x, y, w, h);
    if (point) return point
    else {
        sleep(200)
        return null
    }
}
/**
 * 根据id判断 是否有这个组件
 * @param {} id 
 * @returns 
 */
function has_id(id_){
    return id(id_).exists()
}

/**
 * 等待某区域颜色出现,持续 10s
 * @param {*} _color 
 * @param {*} x 
 * @param {*} y 
 * @param {*} w 
 * @param {*} h 
 */
function wait_for_color(_color, x, y, w, h) {
    let n = 0
    while (true) {
        log('wait_for_color', _color)
        verbose('(find-color)' + _color)
        point = find_color(_color, x, y, w, h)
        if (point) return point
        else {
            sleep(1000)
            n++
        }
        if (n > 10) {
            warn('not found', _color)
            return null
        }
    }
}

/**
 * 通过颜色获取坐标
 * @param {*} _color 
 * @param {*} x 
 * @param {*} y 
 * @param {*} w 
 * @param {*} h 
 */
function get_coord_by_color(_color, x, y, w, h) {
    verbose('(find-color)' + _color)
    return wait_for_color(_color, x, y, w, h)
}

/**
 * 0 到 200 s 随机睡眠
 * @param {*} tip_message 睡眠时的提示消息
 */
function random_sleep(tip_message) {
    if (tip_message == undefined) tip_message = 'random-sleep'
    random_number = random(0, 200)
    log(tip_message + ' sleep ' + random_number + ' s')
    for (i = random_number; i >= 0; i--) {
        if (i % 3 == 0) toast(tip_message + ' ' + i + ' s')
        sleep(1000)
    }
}

/**
 * 按键监听,自动执行,按下音量加结束进程
 */
function key_event() {
    (function () {
        ();
        ("key_down", function (keyCode, events) {
            if (keyCode == keys.volume_up) {
                toastLog('运行结束')
                exit();
            }
        });
    });
}

// /**
//  * 普通左右布局任务
//  * 将即将启动的 App 从最近任务中移除
//  * @param {*} operation_app App 名称
//  */
// function clear_recent(operation_app) {
//     log('移除最近任务')
//     home()
//     sleep(800)
//     recents()
//     sleep(800)
//     let times_swips = 0
//     while (true) {
//         if (has_text(operation_app)) {
//             point = get_coord_by_text(operation_app)
//             if ( < 530) {
//                 swipe(100, 1000, 500, 1000, 500);
//             } else if ( > 800) {
//                 swipe(500, 1000, 100, 1000, 500);
//             } else {
//                 swipe( - 330, 1400,  - 330, 100, 1000);
//                 sleep(500)
//             }
//             times_swips++
//             if (times_swips > 10) {
//                 warn('重试')
//                 times_swips = 0
//                 clear_recent()
//                 break
//             }
//         } else {
//             break
//         }
//     }
//     home()
// }

/**
 * Mui10 任务
 * 将即将启动的 App 从最近任务中移除
 * @param {*} operation_app App 名称
 */
function clear_recent(operation_app) {
    log('移除最近任务')
    home()
    sleep(800)
    recents()
    sleep(800)
    let times_swips = 0
    while (true) {
        if (has_text(operation_app)) {
            point = get_coord_by_text(operation_app)
            swipe(, ,  + 500, , 600);
            sleep(800)
            times_swips++
            if (times_swips > 10) {
                warn('重试')
                times_swips = 0
                clear_recent()
                break
            }
        } else {
            break
        }
    }
    home()
}
/**
 * 脚本运行的前置+后置自动化操作,包括屏幕解锁,自动按键监听,移出最近任务,启动 App,执行脚本,结束进程等。
 * @param {*} callback 启动 App 后需要执行的内容
 * @param {*} op_app 需要启动的 App,如:网易云音乐
 * @param {*} this_app 当前脚本描述,如:播放日推
 * @param {*} use_tts 是否使用结束语音,传入 true 时,会在运行结束前给出语音提示
 */
function start_app(callback, op_app, this_app, use_tts, close_app) {
    if (close_app == undefined) close_app = false
    this_app = this_app != undefined ? this_app : op_app
    operation_app = op_app + '\n'
    while (!()) {
        unlock();
    }
    key_event()
    sleep(800)
    if (close_app == true) clear_recent(op_app)
    log('Launch', op_app)
    launchApp(op_app);
    start_tip(this_app);
    sleep(1000)
    if (op_app) {
        callback();
        end_tip(this_app);
        if (use_tts) tts_report(this_app + '成功')
        exit()
    }
}

/**
 * 给出语音提示
 * @param {*} _text 
 */
function tts_report(_text) {
    warn(_text)
    importClass();
    importClass();
    let ttsStatus = false;
    let ttsListener = new ({
        onInit: function (status) {
            if (status == ) {
                let ttsSetLanguageResult = (().getLocale()/*ttsLanguage*/);
                if (ttsSetLanguageResult != TextToSpeech.LANG_MISSING_DATA && ttsSetLanguageResult != TextToSpeech.LANG_NOT_SUPPORTED) {
                    ttsStatus = true;
                    ();
                    speech(_text);
                    // let file = "/sdcard/xxx.mp3";
                    // speech(_text, file);
                } else {
                    toast("TTS不支持当前语言");
                }
            } else {
                toast("初始化TTS失败");
            }
        }
    })
    let TTS = new TextToSpeech(context, ttsListener);
    function speech(ttsText, fileName) {
        if (TTS && ttsStatus) {
            if ( <= ()) {
                if (fileName) {
                    let file = new File(fileName);
                    if (!()) {
                        ();
                    }
                    (ttsText, null, file, ());
                } else {
                    (ttsText, TextToSpeech.QUEUE_FLUSH/*QUEUE_FLUSH插队,QUEUE_ADD排队*/, null);
                }
                return true;
            } else {
                toast("朗读文本过长");
                return false;
            }
        } else {
            toast("TTS未准备好");
            return false;
        }
    }
}

/**
 * 颜色点击
 * @param {*} _color 需要点击的颜色
 * @param {*} x 颜色区域的左上角 x 坐标
 * @param {*} y 颜色区域的左上角 y 坐标
 * @param {*} w 颜色区域的宽度
 * @param {*} h 颜色区域的高度
 */
function click_color(_color, x, y, w, h) {
    let point = get_coord_by_color(_color, x, y, w, h)
    if (point) {
        click(,  + 20);
        return true
    }
    return false
}

/**
 * 颜色循环点击
 * @param {*} _color 需要点击的颜色
 * @param {*} x 颜色区域的左上角 x 坐标
 * @param {*} y 颜色区域的左上角 y 坐标
 * @param {*} w 颜色区域的宽度
 * @param {*} h 颜色区域的高度
 */
function click_color_each(_color, x, y, w, h) {
    let attempts = 0
    let finded = 0
    while (true) {
        if (click_color(_color, x, y, w, h)) {
            finded++
            if (finded > 10) return
        } else {
            attempts++
            if (attempts > 2) return
        }
        sleep(300)
    }
}

/**
 * 等待文本出现
 * @param {*} _text 等待出现的文本
 */
function wait_for(_text) {
    log('(wait)' + _text)
    let n = 0
    while (true) {
        n++
        if (has_text(_text)) {
            set_runing_tip('')
            return true
        } else {
            set_runing_tip('查找(' + _text + ')第' + n + '次')

        }
        sleep(1500)
    }
}

/**
 * 等待文本出现 到达某次 跳出循环 默认 20次
 * @param {*} _text 
 * @param {*} num 
 * @returns 
 */
function wait_for_num(_text,num) {
    log('(wait)' + _text)
    if (num == undefined) num = 20
    let n = 0
    while (true) {
        n++
        if (has_text(_text)) {
            set_runing_tip('')
            return true
        } else {
            set_runing_tip('查找(' + _text + ')第' + n + '次')
            if(n>num){
                return false
            }
        }
        sleep(1500)
    }
}

/**
 * 接口描述:等待某文本出现之前的点击。
 * 场景举例:启动网易云音乐时,等待首页出现之前,点击跳过按钮 wait_befor_click('我的', '跳过')
 * @param {*} wait_text 等待出现的文本
 * @param {*} click_text 需要点击的文本
 * @param {*} timer 等待计时器,计时器越长,click_text 被点击的几率越高
 */
function wait_befor_click(wait_text, click_text, timer) {
    log('(wait-click)' + click_text)
    if (timer == undefined) timer = 10
    for (let n = timer; n > 0; n--) {
        if (has_text(wait_text)) {
            break
        } else if (has_text(click_text)) {
            click_item(click_text)
        } else sleep(600)
    }
    // wait_for(wait_text)
    return
}

/**
 * 获取当前年月日时分秒和星期
 */
function get_year() {
    let now = new Date();
    return ();
}
function get_month() {
    let now = new Date();
    return () + 1;
}
/**
 * 获取上个月月份
 */
function get_last_month() {
    _month = get_month()
    if (_month > 1 && _month <= 12) return _month - 1
    else if (_month == 1) return 12
    else {
        error('月份超出范围')
        return false
    }
}

/**
 * 计算单休的每月工作时长
 * @param {*} start_date 开始时间,格式:yyyy/mm/dd
 * @param {*} end_date 
 * @param {*} rest_days 每周休息天数
 */
function count_work_day(start_date, end_date, rest_days) {
    if (rest_days == undefined) rest_days = 1
    start_date = string2date(start_date);
    end_date = string2date(end_date);
    let delta = (end_date - start_date) / (1000 * 60 * 60 * 24);
    let weeks = 0;
    for (i = 0; i < delta; i++) {
        if (start_date.getDay() < rest_days) weeks++;
        start_date = start_date.valueOf();
        start_date += 1000 * 60 * 60 * 24;
        start_date = new Date(start_date);
    }
    return delta - weeks;
}

/**
 * 计算上个月的年份
 * @param {*} start_date 
 * @param {*} end_date 
 */
function get_last_month_year() {
    let now = new Date();
    now = ();
    now -= 20 * 1000 * 60 * 60 * 24;
    let last_month_date = new Date(now);
    return last_month_date.getFullYear();
}

/**
 * 返回日期
 */
function get_date() {
    let now = new Date();
    return ();
}
/**
 * 返回星期
 */
function get_day() {
    let now = new Date();
    return ();
}
function get_hours() {
    let now = new Date();
    return ();
}
function get_minutes() {
    let now = new Date();
    return ();
}
function get_seconds() {
    let now = new Date();
    return ();
}

/**
 * 拆分用户设定的时间,20:59:35 分别拆为时分秒
 * @param {string} _time 时间字符串
 */
function get_my_hours(_time) {
    return Number(_time.split(":")[0])
}
function get_my_minutes(_time) {
    return Number(_time.split(":")[1])
}
function get_my_seconds(_time) {
    return Number(_time.split(":")[2])
}

/**
 * 获取倒计时
 * @param {string} _time 时间字符串
 */
function total_seconds_delta(_time) {
    return ~~(time2date(_time) - new Date()) / 1000
}
function seconds_delta(_time) {
    let delta_seconds = total_seconds_delta(_time)
    return parseInt(delta_seconds % 60)
}
function minutes_delta(_time) {
    let delta_seconds = total_seconds_delta(_time)
    return parseInt(delta_seconds / 60 % 60)
}
function hours_delta(_time) {
    let delta_seconds = total_seconds_delta(_time)
    return parseInt(delta_seconds / 60 / 60 % 60)
}
function time2date(_time) {
    let str_time = get_year() + '/' + get_month() + '/' + get_date() + ' ' + _time
    return new Date(str_time)
}
function string2date(_time) {
    return new Date(_time)
}
function time2str(_time) {
    let total_seconds = total_seconds_delta(_time)
    let seconds = seconds_delta(_time)
    let minutes = minutes_delta(_time)
    let hours = hours_delta(_time)
    if (total_seconds < 0) {
        seconds += 59
        hours += 23
        minutes += 59
    }
    result = ''
    if (hours != 0) result += hours + 'h '
    if (minutes != 0) result += minutes + 'm '
    result += seconds + 's'
    return result
}

/**
 * 简写的日志输出
 */
function error() {
    res = (arguments).join(' ')
    // toast(res)
    (res)
    // if (operation_app != '') res = operation_app + res
    set_runing_tip(res)
}
function warn() {
    res = (arguments).join(' ')
    toast(res)
    (res)
    // if (operation_app != '') res = operation_app + res
    set_runing_tip(res)
}
function log() {
    res = (arguments).join(' ')
    (res)
    // toast(res)
    // if (operation_app != '') res = operation_app + res
    set_runing_tip(res)
}
function verbose() {
    res = (arguments).join(' ')
    (res)
    // if (operation_app != '') res = operation_app + res
    set_runing_tip(res)
}

/**
 * 获取问候语
 */
function say_hi() {
    let hour = get_hours()
    let greet = "Hi"
    if (hour <= 3) {
        greet = "晚安"
    } else if (hour < 9) {
        greet = "早上好"
    } else if (hour < 12) {
        greet = "上午好"
    } else if (hour < 14) {
        greet = "中午好"
    } else if (hour < 18) {
        greet = "下午好"
    } else if (hour < 24) {
        greet = "晚上好"
    }
    return greet
}

function click_id(id_name) {
    id(id_name).findOne().click()
}

function swipe_down() {
    swipe(500, 500, 500, 1500, 500)
    sleep(800)
}

function swipe_up() {
    swipe(500, 1500, 500, 100, 500)
    sleep(800)
}

/**
 * 提醒用户,接下来的操作需要注意(用户确认后,方可继续)
 * @param {*} _text 
 */
function be_careful(_text) {
    log('请注意,', _text)
    while (true) {
        if (confirm(_text)) break;
        else sleep(1000);
    }
    sleep(1000);
}

/**
 * 提醒用户,接下来的操作需要人工处理(用户确认后,方可继续)
 * @param {*} _text 
 */
function handwork(_text, timer) {
    timer = timer === undefined ? 2 : timer
    let timer_backup = timer
    log('人工', _text)
    while (true) {
        for (timer; timer > 0; timer--) {
            sleep(1000);
            toast('倒计时 ' + timer + ' s');
        }
        if (confirm(_text + '?')) break;
        else timer = timer_backup + 1
    }
}
/**
 * 倒计时 秒后执行
 * @param {}} timer 
 */
function countDown(timer){
    timer = timer === undefined ? 2 : timer
    for (timer; timer > 0; timer--) {
        toast('倒计时 ' + timer + ' s 后执行');
        sleep(1000);
    }
}


 = {
    swipe_up: swipe_up,
    handwork: handwork,
    be_careful: be_careful,
    swipe_down: swipe_down,
    unlock: unlock, // 解锁
    clear_recent: clear_recent, // 结束最近任务
    start_app: start_app, // 脚本运行的前置+后置自动化操作,包括屏幕解锁,自动按键监听,移出最近任务,启动 App,执行脚本,结束进程等。
    wait_for: wait_for, // 等待文本出现
    wait_for_num:wait_for_num,//等待文本出现 n次
    has_text: has_text, // 当前屏幕是否存在文本
    vibrate: vibrate, // 设备震动
    say_hi: say_hi, // 获取问候语
    log: log, // 普通日志
    warn: warn, // 警告日志
    error: error, // 错误日志
    verbose: verbose, // 调试日志
    time2str: time2str, // 时间转字符串
    time2date: time2date, // 时间转日期
    random_sleep: random_sleep, // 0 到 200 s 随机睡眠
    total_seconds_delta: total_seconds_delta, // 获取倒计时
    click_item: click_item, // 任意类型的文本点击
    click_color: click_color, // 颜色点击
    click_id: click_id,
    find_color: find_color,
    has_color: has_color,
    wait_for_color: wait_for_color,
    click_item_each: click_item_each, // 任意类型的文本循环点击
    click_color_each: click_color_each, // 颜色循环点击
    wait_befor_click: wait_befor_click, // 接口描述:等待某文本出现之前的点击。 场景举例:启动网易云音乐时,等待首页出现之前,点击跳过按钮 wait_befor_click('我的', '跳过')
    get_coord_by_color: get_coord_by_color, // 通过颜色获取坐标
    get_coord_by_text: get_coord_by_text, // 获取文本坐标,文本点击时自动调用
    get_last_month: get_last_month, // 获取上个月月份
    get_year: get_year, // 获取年份
    get_month: get_month, // 获取月份
    get_date: get_date, // 返回日期
    get_day: get_day, // 返回星期
    get_hours: get_hours, // 返回小时
    get_minutes: get_minutes, // 返回分钟
    get_seconds: get_seconds, // 返回秒
    set_volume: set_volume, // 设置设备音量
    set_runing_tip: set_runing_tip, // 通知栏提示内容设置
    key_event: key_event, // 音量加结束脚本
    string2date: string2date, // 字符串转日期
    get_last_month_year: get_last_month_year, // 获取上个月的年份
    count_work_day: count_work_day, // 获取工作天数
    set_runing_tip_position: set_runing_tip_position, // 设置状态栏位置
    has_id:has_id,//根据id 判断是否有这个组件
    countDown:countDown,//倒计时
}

网站

Pro Docs