This is package for ldplayer emulator control software. (unofficial)
Please fork and create a pull request 🙂
pip install ldplayer-tools
other libraries that may be needed for your automation
- ldplayer 9
- python 3.11
- pure-python-adb
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)
This package is open-sourced software licensed under the MIT license.