Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
quachvinhky authored Dec 18, 2021
1 parent 25525dc commit efc6537
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# MemuHelper Library
Thư viện này dùng để hỗ trợ các thao tác với máy ảo Memu Play thuận tiện và dễ dàng hơn;
# Example
### Set Path Memu Play & ADB
```js
MemuControl.memuFolderPath = @"C:\Program Files\Microvirt\MEmu";
MemuControl.adbFolderPath = @"C:\Program Files\Microvirt\MEmu";
```
### 1 Initialization
```js
int index = 1;
MemuControl memuControl = new MemuControl(index);
```
### 2 Using
- Open VM
```js
await memuControl.OpenVM();
```
- Stop VM
```js
await memuControl.StopVM(false);
```
- Reboot VM
```js
await memuControl.RebootVM();
```
### OR
- ADB Execute
```js
string version = MemuControl.ADBExecute("version");
```
```js
string[] devices = MemuControl.ADBExecute("devices").Split('\n');
```
```js
string version = MemuControl.ADBExecute("version");
```
```js
int secondTimeOut = -1;
int index = 1;
string screenXml = MemuControl.ADBExecute("shell uiautomator dump", secondTimeOut, index);
```
- CMD Execute
```js
string ip = MemuControl.CMDExecute("ipconfig", Application.StartupPath);
```
- Stop All VMs
```js
await MemuControl.StopAllVMs();
```
- Sort All VMs
```js
await MemuControl.SortVMs();
```
# See more
https://www.memuplay.com/blog/memucommand-reference-manual.html

# Contact with me
- Facebook : www.facebook.com/quachvinhky
- Gmail: quachvinhky2000@gmail.com
# Note
Em mong tìm được đồng đội theo lập trình backend khu vực Sóc Trăng, Bạc Liêu, Cần Thơ

0 comments on commit efc6537

Please sign in to comment.