Page 1 of 1
screenshot file name
Posted: 28 Aug 2013 08:02
by ahmadmll
Hi my friends
I want to create an action to screenshot screen with spesial name form
Like this:
Screenshot_2013-08-28-11-07-07.png
Please help me.
My phone is rooted
Anddroid 4.0.4
Thanks...
Re: screenshot file name
Posted: 28 Aug 2013 16:10
by Martin
Hi,
You can use the variable triggertime and the dateformat option to create the filename.
For example:
screencap -p /mnt/sdcard/Screenshot_{triggertime,dateformat,yyyy-MM-dd-HH-mm-ss}.png
Regards,
Martin
Re: screenshot file name
Posted: 29 Aug 2013 08:38
by ahmadmll
Thanks Martin.
Re: screenshot file name
Posted: 27 May 2014 20:01
by evebrea
Martin wrote:Hi,
You can use the variable triggertime and the dateformat option to create the filename.
For example:
screencap -p /mnt/sdcard/Screenshot_{triggertime,dateformat,yyyy-MM-dd-HH-mm-ss}.png
Regards,
Martin
How would one use this for taking a photo instead of a screencap? I'm working on a "lockdown command" which will put a passcode on my phone then start taking pictures when it receives a code via sms
Re: screenshot file name
Posted: 28 May 2014 16:47
by Martin
You can use an action Take Picture to make a photo.
The action also allows to use a variable in the field 'Target File' to store the picture, for example /storage/emulated/0/picture_{triggertime,dateformat,HHmmss}.jpg