Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- : Wakeup and unlock
- adb shell input keyevent KEYCODE_WAKEUP
- adb shell input touchscreen swipe 930 880 930 380
- adb shell input keyevent KEYCODE_HOME
- : Launch camera
- adb shell am start -a android.media.action.STILL_IMAGE_CAMERA
- timeout 1 /nobreak > NUL
- :repeat
- adb shell input keyevent KEYCODE_FOCUS
- timeout 1 /nobreak > NUL
- adb shell input keyevent KEYCODE_CAMERA
- timeout 2 /nobreak > NUL
- adb shell "ls /sdcard/DCIM/Camera/*"
- adb pull /sdcard/DCIM/Camera/ ./scans
- adb shell "rm /sdcard/DCIM/Camera/*"
- goto repeat
- :adb shell input keyevent KEYCODE_SLEEP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement