[Python] ์๋๋ก์ด๋ ๋ง์ฐ์คํญ ์ด๋ฒคํธ
ยท
Languages/Python
ppadb์ pynput์ ํ์ฉํ์ต๋๋ค. ๋๋ฐ์ด์ค ํค๊ฐ์ adb devices๋ฅผ ํตํด ์ป์ด๋ผ ์ ์์ต๋๋ค. from ppadb.client import Client as AdbClient from pynput.keyboard import Key, Listener import time # Default is "127.0.0.1" and 5037 client = AdbClient(host="127.0.0.1", port=5037) device = client.device("ce0*******642702") # device.shell("logcat", handler=dump_logcat) isNotPressRight = True isNotPressLeft = True isNotPressUp = True isN..