screenshot file name

Post your questions and help other users.

Moderator: Martin

Post Reply
ahmadmll
Posts: 69
Joined: 06 Jul 2013 15:02

screenshot file name

Post by ahmadmll » 28 Aug 2013 08:02

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...

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: screenshot file name

Post by Martin » 28 Aug 2013 16:10

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

ahmadmll
Posts: 69
Joined: 06 Jul 2013 15:02

Re: screenshot file name

Post by ahmadmll » 29 Aug 2013 08:38

Thanks Martin.

evebrea
Posts: 116
Joined: 12 Aug 2013 15:28

Re: screenshot file name

Post by evebrea » 27 May 2014 20:01

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: screenshot file name

Post by Martin » 28 May 2014 16:47

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

Post Reply