Solved

Simulate PRINT SCREEN command in WIN 95??

Posted on 1997-06-02
2
212 Views
Last Modified: 2011-09-20
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
0
Comment
Question by:Lass
2 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 50 total points
ID: 1163800
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
 

Author Comment

by:Lass
ID: 1163801
Thank you very much for the quick response!!
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now