【发布时间】:2015-12-06 17:38:02
【问题描述】:
我想使用“adb shell tap x y”函数(或您可能知道的任何其他方式)通过我计算机上的 python 代码模拟我的 anroid 手机上的触摸。我试过使用
from subprocess import call
call(["adb", "kill-server"])
call(["adb", "shell"])
call(["input", "tap" , "1400" , "800"]) //example of x and y
但它只是到达“shell”调用并被卡住。 (我知道 tap 功能有效,因为它适用于普通的 cmd 窗口)
【问题讨论】:
标签: android python shell cmd adb