Screen Capture is a useful tool which demonstrates how to use several methods from the User32.dll to perform a screen capture.
This project demonstrates the usage of the following API methods and structures: RECT structure, POINT structure, WindowFromPoint(), GetCursorPos(), GetWindowRect(), GetClientRect(), DrawFocuRect(), InflateRect(), GetDesktopWindow(), GetForegroundWindow(), GetWindowDC(), ReleaseDC(), SetCapture().
Here are some key features of "Screen Capture":
· Hotkey support - Demonstrates how to assign a global HotKey to your form, which allows the user to activate your form with a key combination, even when your form is not active or is minimized.
· Capture Full Screen - Capture the entire screen, using the GetDesktopWindow() API method.
· Capture Active Window - Capture only the active window, using the GetForegroundWindow() API method.
· Select window to capture with mouse - Demonstrates using the mouse to hover over and select any window on the screen