android studio快速截图

1.使用内容创建adb_capture.txt

REM ====================

REM set varible _MyTime for filename
FOR /F "tokens=1-4 delims=:." %%a IN ("%time%") DO (
SET _MyTime=%%a%%b%%c%%d
)
REM adb root
REM adb remount
adb shell screencap -p /sdcard/Download/s1.png
adb pull /sdcard/Download/s1.png
adb shell rm /sdcard/Download/s1.png
REM every file have different name by time
rename s1.png %_MyTime%.png

REM===============

2.将文件名更改为adb_capture.bat,然后单击“运行”

猜你喜欢

转载自blog.csdn.net/wyyother1/article/details/133796775