[go: nahoru, domu]

Skip to content

mantvmass/ldplayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.