[技术讨论] 批处理

[复制链接]
1075|0
 楼主| yonghuixi 发表于 2021-11-1 17:14 | 显示全部楼层 |阅读模式
同adb 控制安卓 打开摄像头
@echo  start
adb shell input keyevent 224
adb shell input keyevent 82

@echo  open  camera
adb shell am start -a android.media.action.STILL_IMAGE_CAMERA
TIMEOUT 15

rem adb shell input keyevent 4
rem TIMEOUT 1
setlocal enabledelayedexpansion

:loop
@echo on
set var=0
:continue
TIMEOUT 1
adb shell input keyevent  27
adb shell rm -f /sdcard/DCIM/Camera/*.jpg
rem adb shell /system/bin/screencap -p   /sdcard/meican/screenshot.png
rem TIMEOUT 1
rem adb pull  /sdcard/meican/screenshot.png  screenshot.png
rem TIMEOUT 1
rem adb shell input keyevent 4
rem TIMEOUT 1
rem adb shell input keyevent 4
rem TIMEOUT 1
set /a var+=1
if %var% lss 1000000 goto continue
echo !a!

goto:loop
您需要登录后才可以回帖 登录 | 注册

本版积分规则

8

主题

225

帖子

2

粉丝
快速回复 在线客服 返回列表 返回顶部