当前位置:网站首页>Auto. JS to realize automatic unlocking screen
Auto. JS to realize automatic unlocking screen
2022-06-24 21:23:00 【C colony】
Write it at the front :
This article records my own development process , Basic problems encountered , It is also convenient for future development .
If you're a beginner Auto.js Development , I suggest you read this article Auto.js introduction 【 Hyperbasic 】, This article is the work I read when I started , Overall, I felt very good , The basic content has been mentioned , It is completely suitable for novices to make some simple scripts for their own use .
One 、 Advanced method
1、 Define methods ( Personal advice only )
Follow the advice of the first article , It is also recommended to store all custom functions separately , Post call use .
2、 Code
// Unlock screen
function unlock()
{
if(!device.isScreenOn())
{
device.wakeUp();
sleep(500);
swipe(500,2000,500,1000,210);
sleep(500)
var password = "00000" // Enter the password of your mobile phone here
for(var i = 0; i < password.length; i++)
{
var p = text(password[i].toString()).findOne().bounds();
click(p.centerX(), p.centerY());
sleep(100);
}
}
}This method is only used for mobile phones unlocked by digital password , Because the mobile phone of the subject uses a digital password , So other unlocking methods have not been tried , Interested partners can try it by themselves . Enter the password in the code , Not particularly smart , I look forward to your exchange and improvement with me .
The code here is relatively simple , I won't go into that , If you don't understand, you can read the development documents , The content and usage are very detailed :Auto.js official API Document gate , You can learn by yourself , You can also send me a private letter to answer .
3、 ... and 、 Last
1、 What's wrong , Welcome to discuss .
2、 If you have any questions, please let me know , You can also pay attention to me , We will update other advanced methods later .
边栏推荐
- Pyaudio audio recording
- Use the transparent [x] cross button image in the dialog
- Memo mode - game archiving
- It was Tencent who jumped out of the job with 26k. It really wiped my ass with sandpaper. It gave me a hand
- Postman assertion
- Agency mode -- Jiangnan leather shoes factory
- Talking about the range of data that MySQL update will lock
- OSI notes sorting
- Packaging_ Conversion between basic type and string type
- Learn to use a new technology quickly
猜你喜欢

Common data model (updating)

Several common command operations in win system

基于C语言实现的足球信息查询系统 课程报告+项目源码+演示PPT+项目截图

Record a deletion bash_ Profile file

188. 买卖股票的最佳时机 IV

Hongxiang Yunteng is compatible with dragon lizard operating system, and the product runs stably

Memo mode - game archiving

Does the developer want to change to software testing?
浅谈MySql update会锁定哪些范围的数据

Page replacement of virtual memory paging mechanism
随机推荐
NPM download speed is slow
Physical layer introduction
Concepts of kubernetes components
Golang reflection operation collation
Sleep revolution - find the right length of rest
Vant component used in wechat applet
ping: www.baidu.com: 未知的名称或服务
It was Tencent who jumped out of the job with 26k. It really wiped my ass with sandpaper. It gave me a hand
Mapstacks: data normalization and layered color layer loading
database/sql
Football information query system based on C language course report + project source code + demo ppt+ project screenshot
After 5 months' test, it took 15K to come for an interview. When I asked, it was not worth even 5K. It was really
Role of wait function
Undo log and redo log must be clear this time
Learn to use a new technology quickly
Procedural life: a few things you should know when entering the workplace
2021-09-30
Network layer
Does the developer want to change to software testing?
Return of missing persons