Python adb壳牌解决方案';输入触摸屏滑动';

Python adb壳牌解决方案';输入触摸屏滑动';,python,adb,bluestacks,Python,Adb,Bluestacks,我使用python 3.8.5和bluestacks 4.23 device.shell(f'input touchscreen swipe x, y, x_end, y_end, time) 通常效果很好,但最近我意识到,游戏会随机化x和y点击点,因此无法准确操作。谢天谢地,它们显示了我在拖动过程中的状态,但我错过了保持单击的命令 我想要这样的东西: device.shell(f'input touchscreen tapDown x, y) device.shell(f'input t

我使用python 3.8.5和bluestacks 4.23

device.shell(f'input touchscreen swipe x, y, x_end, y_end, time)  
通常效果很好,但最近我意识到,游戏会随机化x和y点击点,因此无法准确操作。谢天谢地,它们显示了我在拖动过程中的状态,但我错过了保持单击的命令

我想要这样的东西:

device.shell(f'input touchscreen tapDown x, y)
device.shell(f'input touchscreen tapDrag x_end, y_end, time)
    
# mid part is not relevant, but so you can get an idea
screenshot = device.screencap()
with open('screen.png', 'wb') as f:
    f.write(CS)
x_end, y_end = tess.image_to_string(device.screencap()).get_text_to_usable_value()

device.shell(f'input touchscreen tapDrag x_end, y_end, time)
device.shell(f'input touchscreen tapRelease)
有人有主意吗?对不起,英语不好