Simulate PRINT SCREEN command in WIN 95??

I was wondering if any one knew how to simulate through code in any language, pref. C , but any will do.  I need the code to simmulate a screen dump that is done in win95 when you hit the print screen key.  I want it to take snapshots to the clipboard without hitting the printscreen key!!

Much thanks!!
jim
LassAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
chensuConnect With a Mentor Commented:
The Win32 SDK documentation about keybd_event function writes:

An application can simulate a press of the PRINTSCREEN key in order to obtain a screen snapshot and save it to the Windows clipboard. To do this, call keybd_event with the bVk parameter set to VK_SNAPSHOT, and the bScan parameter set to 0 for a snapshot of the full screen or set bScan to 1 for a snapshot of the active window.

0
 
LassAuthor Commented:
Thank you very much for the quick response!!
0
All Courses

From novice to tech pro — start learning today.