Read over the docs and I'm not seeing how to capture the active window only. Tried a few things (-setfore, -client) and still it's not working.
"c:\Program Files\MiniCap\minicap.exe" -save "c:\temp\screenshots\capture_$customdate$_$appname$.png" -customdate "$Y$m$d_$H$M$S" -sleep 2 -closeapp -exit -client
I see options for capturing the screen and the whole desktop. Seems that not turning on either of those, it'd default to just the active window. But when I run that command (with or without -client) it never captures, it just doesn't do anything (update: it starts the redbox mode, but that gets hidden by the window).
I did manage to get what I want by using -captureregselect but I'd ideally like to write a bat file that just dumps the current active app to a screenshot after a delay.