当前位置:网站首页>Build auto.js script development environment
Build auto.js script development environment
2022-07-29 04:39:00 【aiguangyuan】
1. Auto.js Software installation and simple use
Direct will APK Send it to Android phone for installation , You can directly drag it into the simulator on the computer side to install , It is not only necessary to install Auto.js Of APK, Also install packaged plug-ins APK,Auto.js Of APK There are icons on the desktop after installation , The packaged plug-ins have no icon after installation .
The following is the effect of opening after installation on the simulator .

4.x The version and 8.x After installing the version of , The interface content is almost the same , The difference is ,8.x You need to log in with the account you purchased , In this version “ The store “ There are many more cases in it .

After installation , We need to pay attention to the following :
1. Open barrier free service ;
2. Open the suspension window ;

3. Stable mode , After this option is turned on, the developed script can be adapted to more mobile phones , If only for a specific model , You can turn this option off ;
4. The Android system of the simulator must be in 7.0 above , To ensure the normal operation of the code example ;
2. Installation and use of Android mobile screen projection software
Before Android phones are projected onto the computer screen, they first need to make some settings for their opponents .
1. Turn the phone on developer mode , Here to Redmi Note 4X For example , stay “ All parameters ” Medium "MIUI edition “ Click on 6 The developer mode will be automatically opened under ;

2. Open... In developer options “USB debugging ”,“USB install “ When you open it, you will be prompted to log in to Xiaomi account. Please log in ,“USB debugging ” Some safety warnings will appear when opening. Please allow ;

3. In the developer options ” choice USB To configure ” By default, it is changed to the option that files can be transferred ;

4. Put ” Pointer position ” open , In order to get the operation location ;

5. Press the phone set above to use USB The cable is connected to the computer ;
6. Install the screen projection software and start the screen projection ;
Use software :scrcpy
Official address :GitHub - Genymobile/scrcpy: Display and control your Android device

Click the above figure to find the download entry , Choose the version to install according to your computer system .

After downloading the installation package , Unzip it to the computer and put it anywhere , But remember The name of the folder where the application is stored cannot contain spaces , Otherwise, it will not operate normally .
Open the application package , Enter command mode , perform scrcpy, You can turn on the screen projection , At this time, the operation on the computer and the operation on the mobile phone can be synchronized in real time .

7. Precautions for screen projection software ;
When the application package is moved or deleted , The operation may not be completed , The reason is that there are services running in the system in the installation package , Because when starting the service, the application automatically starts a adb Service for .
It is equivalent to automatic execution :adb start-server
At this time, you need to kill these services :adb kill-server

After closing the service , The folder of the application package can be moved or deleted normally .
3. Installation of lightning simulator
Baidu search “ Lightning Simulator ”, Open the website , Download Simulator , Choose Android 7.0 Version above .

Install normally after downloading , If necessary, , Please change the installation location , The following figure shows the effect after installation .

If the simulator is stuck after it is turned on , Please check the BIOS Turn on in settings VT Virtual technology , Generally, ordinary computers enter BIOS The setting method is to press and hold Delete key , Brand computers enter BIOS The keys of each time are different , Please Baidu .
The interface of the flat panel after the simulator is installed normally , Please click... In the upper right corner " Set up " Icon , Change to the interface of mobile version , After saving the settings, restart the simulator to take effect .

Want to install the required software in the simulator , Please open the Pea pod website To search .
Choose normal download when downloading applications , After downloading, directly drag it to the simulator for installation .

Because the system environment of the simulator is isolated from the system environment of the computer , How to share files between two systems ?

In the picture above “ Computer shared path ” And " Android shared path " It's synchronous , No matter in which folder you operate , The other folder will change accordingly .
4. install VS Code Editors and plug-ins
VS Code The editor download and installation is relatively simple , Please go to the official website to download , No more details here .

After the editor is installed , You need to install the plug-in .
4.1. Install the plug-in written by the author ( Not recommended );

If you are using Auto.js Free version ,Auto.js-VSCodeExt You have to install , But in order to have prompt effect when writing ,Auto.js-Pro-Ext It is also recommended to install .
If you are using Auto.js.Pro edition , Just install Auto.js-Pro-Ext, In order to avoid conflicts during operation , If you don't want to uninstall Auto.js-VSCodeExt, You can disable the plug-in .
When the plug-in is installed , Using shortcut keys Control + Shit + P, Then input "Auto.js", You can display the functions supported by the plug-in .
No "Pro" Character options , And for all English is Auto.js-VSCodeExt Plug in functions , Apply to Auto.js Free version .
belt "Pro" The options for characters and Chinese are Auto.js-Pro-Ext Plug in functions , Apply to Auto.js Pro edition .

If you are using Auto.js Free version , Select... From the drop-down list above "Auto.js:Start Server". If you are using Auto.js Pro edition , Select... From the drop-down list above "Auto.js Pro: Connect to a new device (Connect)". This opens the service on the computer .
Open on the mobile screen Auto.js, Turn on " Connecting to a computer “, In this way, applications developed on computers can run on mobile phones .
Although the above two plug-ins are written by the author , But there are two problems :
1. the latest version Auto.js-Pro-Ext There is no grammatical hint , The solution is to install the old version , Recommended installation 1.2.4 This version of ;

2. Use Pro Version of , Shortcut key F5 Don't take effect , Because there will be conflicts ;
4.2. Install third-party plug-ins ( Recommended );

边栏推荐
- Vscode one click compilation and debugging
- Hengxing Ketong invites you to the 24th China expressway informatization conference and technical product exhibition in Hunan
- 6.pytest生成allure报告
- TypeError: Cannot read properties of undefined (reading ‘then‘)
- Use of construction methods
- Don't insist on 66 days. Weight generates random numbers
- C language force buckle question 61 of the rotating list. Double ended queue and construction of circular linked list
- MySQL - 深入解析MySQL索引数据结构
- post导出数据,返回
- Pyscript cannot import package
猜你喜欢

Hengxing Ketong invites you to the 24th China expressway informatization conference and technical product exhibition in Hunan
![Understand the Internet giant [the war between China and Taiwan] and the development thinking of China and Taiwan](/img/6c/f24407133663c0e19d6fa05c611341.png)
Understand the Internet giant [the war between China and Taiwan] and the development thinking of China and Taiwan

Mysql各版本下载地址及多版本共存安装

Detailed comparison of break and continue functions

谷歌浏览器 打开网页出现 out of memory

Idea small settings

Dasctf2022.07 empowerment competition
![[QT learning notes] * insert pictures in the window](/img/72/ecac8fb35a404130ee020db572a4b4.png)
[QT learning notes] * insert pictures in the window

Classes and objects (III)

Command line interactive tools (latest version) inquirer practical tutorial
随机推荐
Won't you just stick to 69 days? Merge range
Unity基础(3)—— unity中的各种坐标系
Realize the effect of univariate quadratic equation through JS. Enter the coefficients of a, B and C to calculate the values of X1 and x2
Mysql:The user specified as a definer (‘root‘@‘%‘) does not exist 的解决办法
[c language] PTA 7-51 sum the first n terms of odd part sequence
WebRTC实现简单音视频通话功能
Tower of Hanoi classic recursion problem (C language implementation)
Redux quick start
spinning up安装完使用教程测试是否成功,出现Library“GLU“ not found和‘from pyglet.gl import *错误解决办法
leetcode 686.重复叠加字符串 KMP方法(C语言实现)
img 响应式图片的实现(含srcset属性、sizes属性的使用方法,设备像素比详解)
redux快速上手
Oracle 插入数据
STL source code analysis (Hou Jie) notes - STL overview
pyscript无法引入包
Opencv environment construction
RecyclerView通过DPAD按键上下切换焦点 切换到界面外的控件时焦点会左右乱跳
Laya中的A星寻路
Classes and objects (III)
Vscode configuration makefile compilation