1
Screenshot Captor / Re: Multiple screen capture but slip each in to each file!
« on: July 03, 2018, 02:15 AM »I have added the commandline option "-capturemon #" to minicap, it will be in next upload.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:-mouser (June 24, 2018, 01:52 AM)
(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 2Code: PowerShell [Select]
@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 script set SSCOUNT=2 if not "%1" == "" set SSCOUNT=%1 :: Screenshot storage path, including a trailing \ when not empty set SSPATH= :: Filename and monitor prefixes set SSPREFIX=screenshot set SSMONPREFIX=monitor :: Extension, not including the period set 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-SS set SSDATE=$dt:%%Y-%%m-%%d-%%H-%%M-%%S$ :: Aditional MiniCap options can be specified here set MCOPTIONS= :: Path to MiniCap.exe, include trailing \ if not empty set MCPATH= :: ---------------------------------- :: Leave the rest of the script as is setlocal EnableDelayedExpansion set /a LMAX=%SSCOUNT%-1 :: Start multiple MiniCap instances in parallel to get screenshots as close in time as possible for /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)
OMG! You are so awesome!