(view help text of PrintWindow.cs as plain text)
PrintWindow.exe, Version 1.01 Take a screenshot of the specified window Usage: PrintWindow.exe title outputfile [ options ] Where: title is the window title outputfile is the file to contain the screenshot Options: /C:"T,R,B,L" Correct screenshot dimensions for Top, Right, Bottom, Left in pixels, e.g. /C:"-1,1,1,-1" to add 1 pixel at each side (note the minus sign) /D Debug mode: show the screen coordinates used /O Open the resulting output file (implied with /D) /X window title and specified title must match eXactly (default: window title contains specified title) Credits: Get window position and size https://stackoverflow.com/a/1434577 Screenshot based on code by Ali Hamdar (http://alihamdar.com/) http://social.msdn.microsoft.com/Forums/en/csharpgeneral /thread/79efecc4-fa6d-4078-afe4-bb1379bb968b SystemMetric enumeration published by Gabriel T. Sharp on PInvoke.net http://pinvoke.net/default.aspx/Enums/SystemMetric.html Note: Return code -1 in case of errors, otherwise 0. Written by Rob van der Woude https://www.robvanderwoude.com
page last uploaded: 2022-10-05; loaded in 0.0051 seconds