当前位置:网站首页>APP application related instructions in Auto.js
APP application related instructions in Auto.js
2022-08-10 20:56:00 【aiguangyuan】
1. APP version command
1. The current application version number;
app.versionCode
2. The name of the current application version;
app.versionName
3. The current Auto.js version number;
app.autojs.versionCode
4. The name of the current Auto.js version;
app.autojs.versionName
2. Command to open APP
1. Open the app by the app name;
app.launch(appName)
This function can also be used as a global function:
launch(appName)
2. Open the APP through the APP package name;
app.launchPackage(packageName)
This function can also be used as a global function:
launch(packageName)
3. Get the name of the installed application corresponding to the application package name, and return null if the application cannot be found;
app.getAppName(packageName)
This function can also be used as a global function:
getAppName(packageName)
4. Get the package name of the installed application corresponding to the application name, if the application cannot be found, return null, if the name corresponds to multiple applications, only return the package name of one of them;
app.getPackageName(appName)
This function can also be used as a global function:
getPackageName(appName)
3. View and edit files
1. Use other applications to view the file, if the file does not exist, it will be handled by the application viewing the file;
app.viewFile(path)
2. Use other applications to edit the file, if the file does not exist, it will be processed by the application that edited the file;
app.editFile(path)
4. APP installation and uninstallation
1. Uninstall the app. After execution, a prompt box to uninstall the app will pop up.If the application of the package name is not installed, it will be processed by the application uninstaller, and a prompt "application not found" may pop up;
app.uninstall(packageName)
2. Install the application;
app.viewFile(apkPath)
5. Different jump methods
1. Open the application information interface of the application, if the application cannot be found, return false, otherwise return true;
app.openAppSetting(packageName)
This function can also be used as a global function:
openAppSetting(packageName)
2. Start the specific interface of Auto.js, if the function runs in Auto.js, it will open the interface in Auto.js, and if it runs in the packaged application, it will open the corresponding interface of the packaged application;
app.startActivity(name)
The value of name has the following two options:
(1). Log interface: console;
(2). Setting interface: settings;
3. Open the link with the default browser;
app.openUrl(url)
4. Automatically send emails;
app.sendEmail(options)
options is an object, that is, parameters for sending emails, including the following attributes:
(1). email: {string} | {Array}
The recipient's email address, or an array of strings if there are multiple recipients.
(2).cc: {string} | {Array}
The email address of the cc recipient, if there are multiple cc recipients, it will be represented by a string array.
(3).bcc:{string} | {Array}
The email address of the blind copy recipient, if there are multiple blind copy recipients, it will be represented by a string array.
(4).subject:{string}
The subject of the email.
(5).text:{string}
The body of the message.
(6).attachment:{string}
The path to the attachment.
// Email [email protected] and [email protected]({email: ["[email protected]", "[email protected]"],subject: "This is the subject of the email",text: "This is the message body"});
边栏推荐
- 这7个自动化办公模版 教你玩转表格数据自动化
- opengrok搭建[通俗易懂]
- sklearn 笔记 TSNE
- 2020 ICPC Shanghai Site G
- @Autowired annotation --required a single bean, but 2 were found causes and solutions
- PostgreSQL — 安装及常用命令
- Pt/CeO2 monatomic nanoparticles enzyme | H - rGO - Pt @ Pd NPs enzyme | carbon nanotube load platinum nanoparticles peptide modified nano enzyme | leukemia antagonism FeOPtPEG composite nano enzyme
- Apple Font Lookup
- win7开机有画面进系统黑屏怎么办
- C语言写数据库
猜你喜欢
2019河北省大学生程序设计竞赛部分题题解
@Autowired注解 --required a single bean, but 2 were found出现的原因以及解决方法
- [email protected] NPs)"/>
转铁蛋白修饰蛇床子素长循环脂质体/负载三七皂苷R1的PEG-PLGA纳米粒([email protected] NPs)
Iridium Ruthenium Alloy/Iridium Oxide Biomimetic Nanozyme | Palladium Nanozyme | GMP-Pd Nanozyme | Gold-Palladium Composite Nanozyme | Ternary Metal Pd-M-Ir Nanozyme |shell nanozyme
Echart饼状图标注遮盖解决方案汇总
【语义分割】2017-PSPNet CVPR
Transferrin-modified vincristine-tetrandrine liposomes | transferrin-modified co-loaded paclitaxel and genistein liposomes (reagents)
机器学习模型验证:被低估的重要一环
电脑开不了机是什么原因?
线性结构----链表
随机推荐
【go】依赖注入
姜还是老的辣,看看老战哥的老底儿和严谨劲儿
opengrok搭建[通俗易懂]
ctfshow-osint
通用线程:POSIX 线程详解,第 2部分
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
史上最全GIS相关软件(CAD、FME、Arcgis、ArcgisPro)
[SemiDrive source code analysis] [MailBox inter-core communication] 52 - DCF Notify implementation principle analysis and code combat
XML小讲
设备管理中数据聚类处理
【golang map】 深入了解map内部存储协议
【CNN】刷SOTA的trick
【二叉树】二叉搜索树的后序遍历序列
Demis Hassabis:AI 的强大,超乎我们的想象
Pt/CeO2单原子纳米酶|[email protected] NPs纳米酶|碳纳米管负载铂颗粒纳米酶|白血病拮抗多肽修饰的FeOPtPEG复合纳米酶
电信保温杯笔记——《统计学习方法(第二版)——李航》第17章 潜在语义分析
Ransom Letter Questions and Answers
如何提交一个PR?【OpenHarmony成长计划】【OpenHarmony开源社区】
Multifunctional Nanozyme Ag/PANI | Flexible Substrate Nano ZnO Enzyme | Rhodium Sheet Nanozyme | Ag-Rh Alloy Nanoparticle Nanozyme | Iridium Ruthenium Alloy/Iridium Oxide Biomimetic Nanozyme
[SWPUCTF 2021 新生赛] web