ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Screenshot Captor

Multiple screen capture but slip each in to each file!

<< < (4/4)

huancoi:
Awesome, thanks Ath! huancoi, maybe that will be useful to you.
-mouser (June 24, 2018, 01:09 PM)
--- End quote ---

Thank you!

huancoi:
I have added the commandline option "-capturemon #" to minicap, it will be in next upload.
-mouser (June 24, 2018, 01:52 AM)
--- End quote ---
To ease the use of this new feature I wrote a CMD script to capture multiple monitors to multiple files, as close in time as possible:
(only used PowerShell code highlighter for readability)
Change any settings to your likings, can be fired from a AHK hotkey script, optional parameter: nr. of monitors to capture sequentially, defaults to 2

--- Code: PowerShell ---@echo off:: MultiMonitorShot.cmd: Grab multiple monitors screenshots to separate files:: Usage: MultiMonitorShot [monitors]:: Monitors defaults to 2:: Settings::: Number of monitors to capture, override with 1st argument to scriptset SSCOUNT=2if not "%1" == "" set SSCOUNT=%1:: Screenshot storage path, including a trailing \ when not emptyset SSPATH=:: Filename and monitor prefixesset SSPREFIX=screenshotset SSMONPREFIX=monitor:: Extension, not including the periodset SSFILETYPE=png:: Set date format using variables as in https://www.donationcoder.com/software/mouser/popular-apps/minicap#commandline-options:: Initially set to YYYY-mm-DD-HH-MM-SSset SSDATE=$dt:%%Y-%%m-%%d-%%H-%%M-%%S$:: Aditional MiniCap options can be specified hereset MCOPTIONS=:: Path to MiniCap.exe, include trailing \ if not emptyset MCPATH=:: ----------------------------------:: Leave the rest of the script as issetlocal EnableDelayedExpansionset /a LMAX=%SSCOUNT%-1:: Start multiple MiniCap instances in parallel to get screenshots as close in time as possiblefor /l %%N in (0,1,%LMAX%) do (        set /a O=%%N+1        start %MCPATH%MiniCap.exe -save "%SSPATH%%SSPREFIX%-%SSDATE%-%SSMONPREFIX%-!O!.%SSFILETYPE%" -capturemon %%N -exit -stderr %MCOPTIONS%        REM Append the part after the colon to the previous line for logging any errors: >>"%0.%%N.errorlog")
Edit1: Modified to number the screenshots according to the Windows monitor numbers (1..n) instead of from 0 to n-1
Edit2: Fixed setting to not have a double period before the extension
Edit3: Added setting for additional MiniCap options
-Ath (June 24, 2018, 05:33 AM)
--- End quote ---

OMG! You are so awesome!

Navigation

[0] Message Index

[*] Previous page

Go to full version