Last active
June 10, 2019 03:21
-
-
Save sorcererxw/559639d34b99fd04c85b5f84270a00fd to your computer and use it in GitHub Desktop.
即刻奶茶大战 adb 自动脚本
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import sys | |
import time | |
def adbShell(command): | |
subprocess.Popen(["adb", "shell", command], | |
stdin=subprocess.PIPE, stdout=subprocess.PIPE) | |
cnt = 0 | |
peer = 20 | |
while True: | |
cnt += 1 | |
command = "" | |
for j in range(0, peer): | |
command += "input tap 512 1900;" | |
adbShell(command) | |
print('tap') | |
time.sleep(3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用方法
brew install adb
scoop install adb
brew install python
scoop install python
jike-mike-tea-war.py
,并将上面代码复制进去保存python jike-mike-tea-war.py