topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday March 29, 2024, 2:30 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: How to name file as HourMinuteSecond taken?  (Read 5901 times)

cmori

  • Participant
  • Joined in 2014
  • *
  • default avatar
  • Posts: 14
    • View Profile
    • Donate to Member
How to name file as HourMinuteSecond taken?
« on: March 16, 2014, 11:14 AM »
I just did a search in Screenshot Captor forum for filenaming, yet did not find exactly what I wanted. 

Ques.  How to name file as HourMinuteSecond taken?

When captures named, how do I set it to make filename of capture using Hour and Minute and Second taken so it looks like this:

140501.png  (indicating 2pm on 24hr clock)
084341.png (indicating 8am...)
etc.

So far as I figured out how to edit style, it comes out like this: 
8_43_41 AM.png
while I prefer this shorter HourMinuteSecond style:  084341.png
etc.  I don't want dates.

Or as an alternative, that will work for my purpose, can I set Screenshot Captor to number each shot taken consecutively from 000001 up?  In other words, the next capture has filename 000001, then 000002, 000003 and so on.  And when I turn computer on tomorrow, captures continue where left off:  say, 000270, 000271, etc.

I appreciate any solution easy enough for me, a computer newbie, to do. 


cmori

  • Participant
  • Joined in 2014
  • *
  • default avatar
  • Posts: 14
    • View Profile
    • Donate to Member
Re: How to name file as HourMinuteSecond taken?
« Reply #1 on: March 16, 2014, 11:47 AM »
Btw, I did try to set HourMinuteSecond using this code: %H%M%S
under The Basics, File Naming Template, at Default New File Name,
and I missed something as it came out like this:
%H%M%S.png
and next capture came out like this:
%H%M%S 002.png

As stated in my original question above, I would really like this format: 
140501.png  (indicating 2pm on 24hr clock)
or consecutive numbering:
000001, 000002, 000003,....

cmori

  • Participant
  • Joined in 2014
  • *
  • default avatar
  • Posts: 14
    • View Profile
    • Donate to Member
Re: How to name file as HourMinuteSecond taken?
« Reply #2 on: March 16, 2014, 12:01 PM »
Update -

I tried something else to see if this works:

I put %time% in Default New File Name

then in Custom Date Format put
%H%M%S

Capture result 9_54_47 AM.png
while i wanted a 24hr clock and no underlines.

So now, all my questions reduced to: how to get time only without underlines?

So above filename will look like this:  095447.png

cmori

  • Participant
  • Joined in 2014
  • *
  • default avatar
  • Posts: 14
    • View Profile
    • Donate to Member
Re: How to name file as HourMinuteSecond taken? - SOLVED
« Reply #3 on: March 16, 2014, 12:18 PM »
I feel so frustrated.  I don't have the patience or skill for technical stuff.  However, I always feel willing to try.  So,

I went through all the options for file naming to try what seemed intuitive - and think I got a solution. 

Drilled down through all choices, then under icon with question mark for other options, saw this: 
%customdate% - obeys custom date format (fill in below)

Put into Default New File Name:
%customdate%
to make it obey my custom format below.

Put into Custom Date Format:
%H%M%S
for desired 24hr clock.

Remove _ [dash] from Illegal filename replacement character.  It seems that supplies underlines.

Behold - that worked to get:
100706.png

Just what I wanted.

What a fantastic software!  My hat off to mouser for thinking of just about everything!

cmori

  • Participant
  • Joined in 2014
  • *
  • default avatar
  • Posts: 14
    • View Profile
    • Donate to Member
Re: How to name file as HourMinuteSecond taken?
« Reply #4 on: March 16, 2014, 12:24 PM »
Image showing my progress of filenames, in case anyone interested.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: How to name file as HourMinuteSecond taken?
« Reply #5 on: March 16, 2014, 12:28 PM »
I'm glad you were able to work this out.   :up:  Welcome to DonationCoder, too.   :D

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: How to name file as HourMinuteSecond taken?
« Reply #6 on: March 16, 2014, 01:32 PM »
Well done cmori!
I was going to reply earlier but was unable to figure it out myself...

I see now it also works (here) if you just use %time% and remove the underscore as you have done.
Tom

cmori

  • Participant
  • Joined in 2014
  • *
  • default avatar
  • Posts: 14
    • View Profile
    • Donate to Member
Re: How to name file as HourMinuteSecond taken?
« Reply #7 on: March 18, 2014, 02:44 PM »
Fantastic.  I will try it.

Like this I assume:.

Custom Date Format:
%time%   
for desired 24hr clock.

 - - - using %time% instead of %H%M%S

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: How to name file as HourMinuteSecond taken?
« Reply #8 on: March 18, 2014, 04:27 PM »
Fantastic.  I will try it.

Like this I assume:.

Custom Date Format:
%time%   
for desired 24hr clock.

 - - - using %time% instead of %H%M%S

Using %time% is the same as setting customdate[time] as you have done. I'm not sure though - it could be simply getting the default time format from windows - I have 24hr time format.
Just a different method - i.e. your way is fine, probably even better because it says exactly what you want :up:

FWIW attached is how it looks here (note filename)
Tom