Created
March 7, 2017 08:12
-
-
Save takkumattsu/86316b35f1c0624898cd347e2f0ae2e2 to your computer and use it in GitHub Desktop.
Andrid端末のスクリーンキャプチャスクリプト
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
#!/bin/bash | |
ADB=/c/Users/YourName/AppData/Local/Android/sdk/platform-tools/adb.exe | |
FILENAME=$(date +'%Y%m%d_%I%M%S').png | |
CAP_FILE=mnt/sdcard/$FILENAME | |
# キャプチャ | |
${ADB} shell screencap -p $CAP_FILE | |
cd ~/Desktop | |
# 取得 | |
${ADB} pull $CAP_FILE | |
# 削除 | |
${ADB} shell rm $CAP_FILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment