Take OUYA Screenshots over ADB

0 Comments

Developing on the OUYA has been a great experience for many people out there, from beginners all the way up to big game houses, but some of the simplest things seem to be obscured. One such thing is how to take screenshots over an ADB connection.

After you have your game/app working just right, it is important to take good screenshots of it to ensure people know what they are getting, but a way to do that is not exactly obvious on the OUYA. I started by taking a couple of point-and-shoot camera pictures for my On Screen Alerts app, but quickly realized that just was not good enough. After a fare bit of digging I was able to find a way to take OUYA screenshots over ADB, assuming you have the ADB bridge established. I took the liberty of making a batch file for the windows users out there, giving you double click access to an OUYA screenshot!

Screenshot.bat

rem OUYA_ScreenSot.bat
rem this part generates the date stamp, your locale can affect this
rem so if it does not work please email me the out put of the following
rem commands:
rem echo %time%
rem echo %date%

set hour=%time:~0,2%
if "%hour:~0,1%" == " " set hour=0%hour:~1,1%
echo hour=%hour%
set min=%time:~3,2%
if "%min:~0,1%" == " " set min=0%min:~1,1%
echo min=%min%
set secs=%time:~6,5%
if "%secs:~0,1%" == " " set secs=0%secs:~1,1%
echo secs=%secs%

set year=%date:~-4%
echo year=%year%
set month=%date:~-7,2%
echo month=%month%
set day=%date:~-10,2%
echo day=%day%

set datetimef=%year%.%month%.%day%.%hour%.%min%.%secs%

echo datetimef=%datetimef%
adb shell /system/bin/screencap -p /sdcard/screencapture.png
adb pull /sdcard/screencapture.png OUYA.ScreenCapture.%datetimef%.png
mspaint.exe OUYA.ScreenCapture.%datetimef%.png

Download screenshot.bat

This is a great solution which copies the screenshot to your computer in a beautiful high-resolution PNG format.

- By: Posted on:

Comments

Small ad here
Select a size at which to preview the size