(adb_path, x, y, px, py)
| 32 | |
| 33 | |
| 34 | def tap(adb_path, x, y, px, py): |
| 35 | w = px |
| 36 | h = py |
| 37 | ax = int(x*w) |
| 38 | ay = int(y*h) |
| 39 | command = adb_path + f" shell input tap {ax} {ay}" |
| 40 | subprocess.run(command, capture_output=True, text=True, shell=True) |
| 41 | time.sleep(1) |
| 42 | |
| 43 | |
| 44 | def type(adb_path, text): |