Page 1 of 1

Establishing a Naming Scheme in Console

Posted: Mon Mar 29, 2021 7:50 pm
by zhoutman
I am curious what the best way to establish a naming scheme inside the console would be. The issue arises from us wanting to create a new folder for each frame-capture session. This means we have to make a new directory each time for the CaptureSingleFrameTo() command. Would it still be best for me to use this command for this method or is there another method to do so?

Thanks in advance.

Re: Establishing a Naming Scheme in Console

Posted: Tue Mar 30, 2021 6:06 pm
by admin
Hi,

you could certainly create all your own directories and file names and specify the name of each file, but you end up re-writing a lot of code that SharpCap already has.

You can already set up highly flexible file naming patterns - see https://docs.sharpcap.co.uk/3.2/#Filenames%20Tab . If you use these then directories are created for you and frame capture files are numbered 00001, 00002 etc. Consider setting the target name in your script to distinguish each capture run.

cheers,

Robin