Adb.Command.Helper 1.0.1

dotnet add package Adb.Command.Helper --version 1.0.1
NuGet\Install-Package Adb.Command.Helper -Version 1.0.1
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="Adb.Command.Helper" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Adb.Command.Helper --version 1.0.1
#r "nuget: Adb.Command.Helper, 1.0.1"
#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 Adb.Command.Helper as a Cake Addin
#addin nuget:?package=Adb.Command.Helper&version=1.0.1

// Install Adb.Command.Helper as a Cake Tool
#tool nuget:?package=Adb.Command.Helper&version=1.0.1

Adb.Command.Helper

NuGet

Usage

// setting ADB folder path
CommandHelper.ADBHelper.SetADBFolderPath(Application.StartupPath + @"\")

Get devices

var devices = CommandHelper.ADBHelper.GetDevices();

Open App

var deviceId = "127.0.0.1:xxxxx";
var app = "com.xxx.xxx";
CommandHelper.ADBHelper.OpenApp(deviceId, app);

Check app running

var deviceId = "127.0.0.1:xxxxx";
var app = "com.xxx.xxx";
var isRun = CommandHelper.ADBHelper.CheckAppRunning(deviceId, app);

Tap screen

var deviceId = "127.0.0.1:xxxxx";
var x = 100;
var y = 100;
CommandHelper.ADBHelper.Tap(deviceId, x, y);

Swipe screen

var deviceId = "127.0.0.1:xxxxx";
var x1 = 100;
var y1 = 100;
var x2 = 200;
var y2 = 200;
var duration = 500;
CommandHelper.ADBHelper.Swipe(deviceId, x1, y1, x2, y2, duration);

ScreenShoot

var deviceId = "127.0.0.1:xxxxx";
var isDeleteImageAfterCapture = false;
var screen = CommandHelper.ADBHelper.ScreenShoot(deviceId, isDeleteImageAfterCapture);

FindOutPoint image in screen

public Point FindPoint(Bitmap source){
  var deviceId = "127.0.0.1:xxxxx";
  var screen = CommandHelper.ADBHelper.ScreenShoot(deviceId, false);
  return CommandHelper.ImageScanOpenCV.FindOutPoint(screen, source);
}

InputText

var deviceId = "127.0.0.1:xxxxx";
var text = "abcd";
CommandHelper.ADBHelper.InputText(deviceId, text);
Product Compatible and additional computed target framework versions.
.NET Framework net451 is compatible.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  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.5.1

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 636 11/3/2020