So I made a bot for a singleplayer android game, using python and adb. The biggest problem is that between each tap there is like a 1 second delay.
I connect to the device like this -
from ppadb.client import Client
def Get_device_adb():
adb = Client(host="127.0.0.1", port=5037)
devices = adb.devices()
if len(devices) == 0:
print("No device attached")
quit()
return devices[0]
device = Get_device_adb()
and use shell input tap to send my taps -
taps = [(225, 750), (350, 800), ...]
for tap in taps:
device.shell(f"input tap {tap[0]} {tap[1]}")
For the game I need the taps to happen as fast as possible one after another, and currently they have a 1 second delay between them.
By the way, I really want this script to run in python and not in jython
So is there a way to make adb tap faster?