From 67afa5db3f950ef5485924b1c48224aff46ec1c1 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 24 Jul 2018 00:45:17 +0200 Subject: [PATCH] do screenshot from cmdline --- windows-snapshot-tool/bin/freeze.exe | Bin 400113 -> 401237 bytes windows-snapshot-tool/src/main.cpp | 13 ++++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/windows-snapshot-tool/bin/freeze.exe b/windows-snapshot-tool/bin/freeze.exe index d386f61f1120393f4138c95c5d1425f94159a589..d8a731c090e40c50fb92d3769339b8bf138aedad 100755 GIT binary patch delta 18271 zcmcIr4OkUb`ad&w2Cs^6QBXugKCYmM28uvxc2h7?(yNi57-*QLhNNh$v4Z)LgqS+! zv9g4+GS`g4^`es9l2&xdsI{`vM6*J(&C1M7-NA{#5Wv~E@&m7;`ZJ!x#)l4zRJdkcNdew&J4n{90H9$Sg1r zWM!^RQY_-k-Sh*LmWR-8yeZ@up!*VhF6Y$VFyt8u293e(@RxIr!#DE|r zvHeithBCi>c`YilllyE5ZqdAe0954Kk4BW!KW;FV`w zUh(J4tmyWNjEk$B%WM^Rc1jhDhzP|1J3?`z7h|iOft#EwokhJ`AMrysWL$=m)%B`j zM6QlpJpY-<*r4ARRae>2Lz*>WRj>3^eQCv?FR`MVH~I(9hAOOHBCAfFU_t%O7^T&X zu4(`bgG1GIIzxIsGS3Dzv|^7|Pe$Y6j2&Nvq8l@|n_=>BMpYsu=u}+QRmzMG!6Dl{ z9@H61rg)V!9fr@W)JxZ+Rew06f$Sa5*rg>kYNC!)R&8^+Tb|*p%&4L!)hNe0EVC5r z780Mg!tK^+N>0ZZVUJSQF#-2iI!4B3p>ZyU%5*E{Y9d$M9bBG`u7j;c<;RY3rOlMx zq#LxLcb=f$Nvg;=eoJQ)V~ge1*O63asJv#KC+W{+uIF!_t;jfW#pG&= z=gk@Zi+ifIQXN}e+*QuS?doXseIwT~AQ^br$onWpmQghGufsJaqA%gy8 z)TDH)`2xIABMJj#wou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)afT+Kkv8%&=ELgfgX&bb0) zyVEpjiTI1l-3Fu|5aTj@8<6HfhM7AO&`d+9vw^HNRR7qf_r0QqECWuLt9Lg5DKRi# z0}|$R;$UBaj}yIm*;AO;zAk)47q8y--rc-*i1shLdsTSZmj-%`6YZyhy~dgB!$Z9` Wn)tIb@%PG8dwO}>eZ#%(VgC=Kaa}F| diff --git a/windows-snapshot-tool/src/main.cpp b/windows-snapshot-tool/src/main.cpp index e2a935c..b7a5550 100644 --- a/windows-snapshot-tool/src/main.cpp +++ b/windows-snapshot-tool/src/main.cpp @@ -30,6 +30,17 @@ int WINAPI WinMain (HINSTANCE hThisInstance, LPSTR lpszArgument, int nCmdShow) { + LPWSTR *szArgList; + int argCount; + szArgList = CommandLineToArgvW(GetCommandLine(), &argCount); + if (szArgList != NULL && argCount >= 1) { + if (wcscmp(L"single", szArgList[1])==0) { + doScreenshot(); + LocalFree(szArgList); + return 0; + } + } + LocalFree(szArgList); HWND existingApp = FindWindow(0, szClassName); if (existingApp) @@ -256,7 +267,7 @@ void doScreenshot() WCHAR path[12]; getRaspiStorage(path); if (wcslen(path) != 3) { - MessageBox(Hwnd, L"Couldn't find Raspberry USB-Storage\nSaving in current directory!", L"Failure", MB_OK); + if (Hwnd != NULL) MessageBox(Hwnd, L"Couldn't find Raspberry USB-Storage\nSaving in current directory!", L"Failure", MB_OK); CaptureImage(Hwnd, L"screenshot.png"); } else { WCHAR filename[128];