Auto_LDPlayer 1.1.0
dotnet add package Auto_LDPlayer --version 1.1.0
NuGet\Install-Package Auto_LDPlayer -Version 1.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Auto_LDPlayer" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Auto_LDPlayer --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Auto_LDPlayer, 1.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Auto_LDPlayer as a Cake Addin #addin nuget:?package=Auto_LDPlayer&version=1.1.0 // Install Auto_LDPlayer as a Cake Tool #tool nuget:?package=Auto_LDPlayer&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AutoLDPlayer
AutoLDPlayer Includes:
- KAutoHelpper
- Emgu.CV.World.dll
- Auto_LDPlayer.dll
Demo
Nuget
Nuget: https://www.nuget.org/packages/Auto_LDPlayer
PM> Install-Package Auto_LDPlayer
Fix error: Couldn't install package
For the new Emgu Nuget package you do need to use PackageReference instead of the traditional package.config.
- Uninstall all NuGet Packages [This removes the package.config file]
- Go to Tools --> Options --> NuGet Package Manager --> General
- Change the default package management format to "PackageReference"
- Check "allow format selection on first package install"
- Click OK
- Install Emgu.CV, Emgu.CV.Bitmap, Emgu.CV.UI and Emgu.CV.runtime.windows
- These Emgu packages should now appear under your references and you should not see a package.config file.
List Command
Note:
param => name, index. nameOrId => "Name LDPlayer Or Index LDPlayer"
deviceID get form cmd "adb devices" or used void "GetDevices2_Running()" return the variable "adb_id"
- Set Path LDPlayer "ldconsole.exe"
LDPlayer.pathLD = "Your Path ldconsole.exe"; //VD: "C:\LDPlayer\LDPlayer4.0\ldconsole.exe"
//Set ADB Your Path
KAutoHelper.ADBHelper.SetADBFolderPath(@"C:\LDPlayer\LDPlayer4.0");
- Initialization
using Auto_LDPlayer;
using Auto_LDPlayer.Enums;
- Example
LDPlayer.Open(LDType.Name, "ld0")
LDPlayer.Open(LDType.Id, "0")
- Manipulation Emulator
void Open(LDType ldType, string nameOrId)
void OpenApp(LDType ldType, string nameOrId, string packageName) //Mở LD cùng app khi chạy
void Close(LDType ldType, string nameOrId)
void CloseAll()
void ReBoot(LDType ldType, string nameOrId)
- Custom Emulator
void Create(string name)
void Copy(string name, string fromNameOrId)
void Delete(LDType ldType, string nameOrId)
void Rename(LDType ldType, string nameOrId, string titleNew)
- App
void InstallAppFile(LDType ldType, string nameOrId, string fileName) //fileName trỏ tới file apk
void InstallAppPackage(LDType ldType, string nameOrId, string packageName) //Cài qua LD Store, hơi dỏm, tốt nhất tự cài apk
void UninstallApp(LDType ldType, string nameOrId, string packageName)
void RunApp(LDType ldType, string nameOrId, string packageName)
void KillApp(LDType ldType, string nameOrId, string packageName)
- Other
void Locate(LDType ldType, string nameOrId, string Lng, string Lat) //Set Toạ Độ GPS
void ChangeProperty(LDType ldType, string nameOrId, string cmd)
cmd use:
[--resolution ]
[--cpu < 1 | 2 | 3 | 4 >]
[--memory < 512 | 1024 | 2048 | 4096 | 8192 >]
[--manufacturer asus]
[--model ASUS_Z00DUO]
[--pnumber 13812345678]
[--imei ]
[--imsi ]
[--simserial ]
[--androidid ]
[--mac ]
[--autorotate < 1 | 0 >]
[--lockwindow < 1 | 0 >]
Exam: LDPlayer.Change_Property("name", "ld0", " --cpu 1 --memory 1024 --imei 123456789");
void SetProp(LDType ldType, string nameOrId, string key, string value)
string GetProp(LDType ldType, string nameOrId, string key)
string ADB(LDType ldType, string nameOrId, string cmd)
void DownCPU(LDType ldType, string nameOrId, string rate)
void Backup(LDType ldType, string nameOrId, string filePath)
void Restore(LDType ldType, string nameOrId, string filePath)
void Action(LDType ldType, string nameOrId, string key, string value)
void Scan(LDType ldType, string nameOrId, string filePath)
void SortWnd() //Sắp Xếp Tab Giả Lập
void zoomIn(LDType ldType, string nameOrId) //Phóng to
void zoomOut(LDType ldType, string nameOrId) //Phóng nhỏ lại
void Pull(LDType ldType, string nameOrId, string remoteFilePath, string localFilePath)
void Push(LDType ldType, string nameOrId, string remoteFilePath, string localFilePath)
void BackupApp(LDType ldType, string nameOrId, string packageName, string filePath)
void RestoreApp(LDType ldType, string nameOrId, string packageName, string filePath)
void GlobalConfig(LDType ldType, string nameOrId, string fps, string audio, string fastPlay, string cleanMode)
[--fps <0~60>] [--audio <1 | 0>] [--fastplay <1 | 0>] [--cleanmode <1 | 0>]
Exam: LDPlayer.Golabal_Config("name", "ld0", "60", "0", "0", "0");
- Get List Devices
List<string> GetDevices()
List<string> GetDevicesRunning()
bool IsDeviceRunning(LDType ldType, string nameOrId)
List<LDevice> GetDevices2()
List<LDevice> GetDevices2Running()
- Cmd
void ExecuteLD(string cmd)
string ExecuteLDResult(string cmdCommand)
- Directional
void Back(string deviceID)
void Home(string deviceID)
void Menu(string deviceID)
- Tap with OpenCV
void TapImg(string deviceID, Bitmap imgFind)
- Change Proxy
void ChangeProxy(string deviceID, string ipProxy, string portProxy)
void RemoveProxy(string deviceID)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net471 is compatible. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.1
- Emgu.CV (>= 4.8.1.5350)
- KAutoHelper_Kteam (>= 1.0.1.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
LDPlayer Library