手機怎么運行cmd?
下載一個adb,把路徑添加到path變量,連上數據線,命令行走起
adb shell input text 1234 ...............輸入1234
adb shell input tap 100 0......................點擊100,0
adb shell input swipe 100 0 100 200 ....從100,0劃到100,200
adb shell dumpsys activity activities ......顯示活動程序
adb shell am start -n ActivityName .........啟動應用程序
adb shell input keyevent X..........模擬手機按鍵
3對應HOME鍵
24對應音量+
25對應音量-
66對應確認鍵
可以用python批量自動運行命令行
import os
os.system('adb shell input swipe 100 0 100 200')