Screen Shot Changer

Apps, websites, tools and helpers for Elite: Dangerous
User avatar
de Carabas
Master
Master
Posts: 1260
Joined: Sat Dec 27, 2014 7:23 pm
CMDR: de Carabas
CMDR_Platform: PC-MAC
Contact:

Re: Screen Shot Changer

Postby de Carabas » Wed Aug 19, 2015 8:24 am

Yes, I guess I knew this format string request would come back again :)

I'll have a look at it. I'll also add the feature to choose your delimiter as dash, underscore or space (or none I guess).
Image
Rename your screen shots automatically! - Screen Shot Changer Visit MartianFire for more info.

User avatar
Flip
Dangerous
Dangerous
Posts: 3342
Joined: Fri Sep 19, 2014 12:00 pm
CMDR: Flip Martin
CMDR_Platform: None Specified
Contact:

Re: Screen Shot Changer

Postby Flip » Wed Aug 19, 2015 8:44 am

You don't need a variable for the delimiter. Just let the user type whatever they want. In my previous example (%Y-%m-%d), you'd just replace the variables and today's result would be "2015-08-19" and if I defined the format as "%Y/%m/%d", the result would be "2015/08/19". This also allows the user to add whatever they want (i.e. "%Y-%m-%d (Flip)" would give "2015-08-19 (Flip)".
Image
We demand rigidly defined areas of doubt and uncertainty! ―Douglas Adams

User avatar
Boozeman
Novice
Novice
Posts: 99
Joined: Tue Feb 03, 2015 7:38 pm
CMDR: Boozeman
CMDR_Platform: None Specified
Contact:

Re: Screen Shot Changer

Postby Boozeman » Wed Aug 19, 2015 10:03 am

de Carabas wrote:Yes, I guess I knew this format string request would come back again :)

I'll have a look at it. I'll also add the feature to choose your delimiter as dash, underscore or space (or none I guess).


Cmdr Boozeman rubs his hands with pleased attitude and have grin in his face :-P
Image

User avatar
de Carabas
Master
Master
Posts: 1260
Joined: Sat Dec 27, 2014 7:23 pm
CMDR: de Carabas
CMDR_Platform: PC-MAC
Contact:

Re: Screen Shot Changer

Postby de Carabas » Wed Aug 19, 2015 1:01 pm

Flip wrote:You don't need a variable for the delimiter. Just let the user type whatever they want. In my previous example (%Y-%m-%d), you'd just replace the variables and today's result would be "2015-08-19" and if I defined the format as "%Y/%m/%d", the result would be "2015/08/19". This also allows the user to add whatever they want (i.e. "%Y-%m-%d (Flip)" would give "2015-08-19 (Flip)".

Ah, I see what you are saying! Yes makes sense. It will need some checking for illegal characters in file names (like / | \ * : etc)
Image
Rename your screen shots automatically! - Screen Shot Changer Visit MartianFire for more info.

User avatar
Flip
Dangerous
Dangerous
Posts: 3342
Joined: Fri Sep 19, 2014 12:00 pm
CMDR: Flip Martin
CMDR_Platform: None Specified
Contact:

Re: Screen Shot Changer

Postby Flip » Wed Aug 19, 2015 1:46 pm

de Carabas wrote:
Flip wrote:You don't need a variable for the delimiter. Just let the user type whatever they want. In my previous example (%Y-%m-%d), you'd just replace the variables and today's result would be "2015-08-19" and if I defined the format as "%Y/%m/%d", the result would be "2015/08/19". This also allows the user to add whatever they want (i.e. "%Y-%m-%d (Flip)" would give "2015-08-19 (Flip)".

Ah, I see what you are saying! Yes makes sense. It will need some checking for illegal characters in file names (like / | \ * : etc)


Ah yeah, good point, my second example was illegal. :oops: But yeah, you got the idea. :)

Should be easier for you in terms of UI, too, as you'd just have to provide a single text field.
Image
We demand rigidly defined areas of doubt and uncertainty! ―Douglas Adams

User avatar
de Carabas
Master
Master
Posts: 1260
Joined: Sat Dec 27, 2014 7:23 pm
CMDR: de Carabas
CMDR_Platform: PC-MAC
Contact:

Re: Screen Shot Changer

Postby de Carabas » Wed Aug 19, 2015 1:59 pm

Flip wrote:
Should be easier for you in terms of UI, too, as you'd just have to provide a single text field.


Yes(ish) but as I'm looking to have the option for renaming video files as well, I'm going to duplicate all the other fields so that you can have different schemes for the different media . So I'm moving all that into a separate settings dialogue and simplifying the main screen.
Image
Rename your screen shots automatically! - Screen Shot Changer Visit MartianFire for more info.

User avatar
de Carabas
Master
Master
Posts: 1260
Joined: Sat Dec 27, 2014 7:23 pm
CMDR: de Carabas
CMDR_Platform: PC-MAC
Contact:

Re: Screen Shot Changer

Postby de Carabas » Sat Aug 22, 2015 11:21 am

New version progressing but it's a pretty major overhaul so will be a while.
Two bugs I've noticed for your info
1) The reported file size of HD screenshots in the output log is showing as kb instead of mb
2) The SCC will throw an exception when trying to save an image with a system name with an invalid character (found this morning when taking a screen shot in Sagittarius A*). I'll have to just strip out those invalid characters but will report it in the output log.
Image
Rename your screen shots automatically! - Screen Shot Changer Visit MartianFire for more info.

User avatar
de Carabas
Master
Master
Posts: 1260
Joined: Sat Dec 27, 2014 7:23 pm
CMDR: de Carabas
CMDR_Platform: PC-MAC
Contact:

Re: Screen Shot Changer

Postby de Carabas » Thu Aug 27, 2015 4:54 pm

I have a new version of the SSC but before it goes 'production' is there anyone that fancies giving it a go? I've tested it but machines vary and it's got a bit more to it now....

I've removed the link for now. There's a problem copying the video files produced from GeForce Experience when they get bigger. Standard vb.net copy functions are corrupting the files (it partially copies files being written to rather than erroring) and adding a delay in is not proving trustworthy, so I need to spend some time working out how to make it more reliable.

► Show Spoiler
Image
Rename your screen shots automatically! - Screen Shot Changer Visit MartianFire for more info.

User avatar
de Carabas
Master
Master
Posts: 1260
Joined: Sat Dec 27, 2014 7:23 pm
CMDR: de Carabas
CMDR_Platform: PC-MAC
Contact:

Re: Screen Shot Changer

Postby de Carabas » Sun Aug 30, 2015 7:47 am

OK, sorted it I think. I've needed to put in two different checks that video files are 'free' to copy. Using either on their own meant the risk of copying an incomplete file which was then corrupted. Also a couple of minor buglets spotted and squashed.

Any feedback on this would be appreciated, especially around the regular expression use for the file names and then I'll compile a release version.

https://dl.dropboxusercontent.com/u/312 ... r_test.zip
Image
Rename your screen shots automatically! - Screen Shot Changer Visit MartianFire for more info.

User avatar
Flip
Dangerous
Dangerous
Posts: 3342
Joined: Fri Sep 19, 2014 12:00 pm
CMDR: Flip Martin
CMDR_Platform: None Specified
Contact:

Re: Screen Shot Changer

Postby Flip » Sun Aug 30, 2015 11:56 am

Great job, De Carabas!

I haven't tried videos, but screenshots work great!

Just one remark about the regular expression for the name: you don't have a pattern for seconds. Maybe you could add one, because it seems very possible to make more than 1 screenshot in a minute, and that would make it less (or not) necessary to append an incrementing number to the name. Maybe you could use %s for seconds and %sn or %n for system name?
Image
We demand rigidly defined areas of doubt and uncertainty! ―Douglas Adams


Return to “Tools and Helpers”

Who is online

Users browsing this forum: No registered users and 2 guests

i