Skip to content

Latest commit

 

History

History
61 lines (47 loc) · 1.29 KB

README.md

File metadata and controls

61 lines (47 loc) · 1.29 KB

LDPlayer Tools

This is package for ldplayer emulator control software. (unofficial)

Table of contents

Contribute to ldplayer

Please fork and create a pull request 🙂

Install

pip install ldplayer-tools

Other libraries

other libraries that may be needed for your automation

Environments

  • ldplayer 9
  • python 3.11
  • pure-python-adb

Example

manage instance

from ldplayer import LDPlayer

ld = LDPlayer("path/to/ldconsole.exe")
print(ld.instances())

tap or swipe event

from ppadb.client import Client as AdbClient
from ldplayer import Controller

client = AdbClient(host="127.0.0.1", port=5037)
device = client.device("emulator-5554") # or your device name

ldc = Controller(device)
ldc.tap(x=10, y=10)

License

This package is open-sourced software licensed under the MIT license.