... It s easy enough to automate it. Just use the keybd_event Windows API function to send the VK_SNAPSHOT key code. Microsoft themselves suggest thisMessage 1 of 6 , Mar 1, 2007View Source--- In email@example.com, "torpidai" <torpidai@...> wrote:
> The problem with print screen is the lack of automationIt's easy enough to automate it. Just use the 'keybd_event' Windows
API function to send the VK_SNAPSHOT key code. Microsoft themselves
suggest this method ("An application can simulate a press of the
PRINTSCRN key in order to obtain a screen snapshot and save it to the
An alternative is to do it using standard Windows GDI calls. The
functions you would need to use are:
'GetDesktopWindow' to get a window handle for the desktop.
'GetDC' to get a device context for the desktop.
'BitBlt' to copy a region of the desktop to your own bitmap.