Yeah. I meant to put GetWindowsDC in not GetDC.

I'm not sure I understand exactly what your after.
If you want to trap the entire screen just go

theDC := GetDC(0);
Image1.Canvas.Handle := theDc;

If that doesn't work or not what your after give me a yell.

Cheers

Jim

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 7 June 2000 15:23
To: Multiple recipients of list delphi
Subject: Re: RE: [DUG]: Copy Screen to Clipboard


Thanks James for a very prompt reply -

Unfortunately, The first method doesn't seem to work (I end up with nothing
in 
my TImage) and I don't want to trap the Print Screen keypress, I want to do
a 
Print Screen under software control.

I want to start a program, which when the main form comes up, displays what
was 
on the screen before the program ran. I want it to look like the actual
screen, 
but only be a TImage.

Sorry if I wasn't clear to start with...

All I want to do is like... Perform(VK_HotKey,0,0) where the hotkey is the 
PrintScreen action....

Laurie..



---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz



CAUTION - This message may contain privileged and confidential information intended 
only for the 
use of the addressee(s) named above.  If you are not the intended recipient of this 
message you are 
hereby notified that any use, dissemination, distribution or reproduction of this 
message is prohibited.  
If you have received this message in error please notify Progressive Enterprises Ltd. 
immediately via 
email at [EMAIL PROTECTED]  Any views expressed in this message 
are those of the 
individual sender and may not necessarily reflect the views of Progressive Enterprises 
Ltd.

This footnote also confirms that Progressive Enterprises Ltd. has swept this email 
message for the 
presence of computer viruses.  This does not guarantee this message is virus free.

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to