Solved

Screen Capture - all screen

Posted on 2000-02-24
17
178 Views
Last Modified: 2010-04-04
i 'am building program that i want to take screen capture of hole screen and send it to the server machine (client/server)

take screen capture of client machine and send the picture to server machine

Trausti
0
Comment
Question by:trausti
  • 8
  • 5
  • 2
  • +2
17 Comments
 
LVL 8

Expert Comment

by:ZifNab
ID: 2555353
Hi

Epsylon has answered this already, see Q.10297975

Zif.
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2555387
Here it is:

procedure TForm1.Button2Click(Sender: TObject);
var
  WndDC: HDc;
  WndRect: TRect;
  WndCanvas: TCanvas;
  Wnd: HWND;
  WWidth, WHeight: Integer;
begin
  Image1.AutoSize := false; // important!!!
  Wnd := GetDesktopWindow;
  WndDC := GetWindowDC(Wnd);
  WndCanvas := TCanvas.Create;
  WndCanvas.Handle := WndDC;
  GetWindowRect(Wnd, WndRect);

  WWidth := WndRect.Right - WndRect.Left;
  WHeight := WndRect.Bottom - WndRect.Top;

  Image1.Width := WWidth;
  Image1.Height := WHeight;
  Image1.Canvas.CopyRect(Rect(0, 0, WWidth, WHeight), WndCanvas, Rect(0, 0, WWidth, WHeight));
  WndCanvas.Free;
  ReleaseDC(Wnd,WndDC);
end;
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2555401
Sending the image is another story...
What kind of connecton do you have in mind?
0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 
LVL 17

Expert Comment

by:inthe
ID: 2555552
listening..
0
 

Author Comment

by:trausti
ID: 2557190
Adjusted points to 120
0
 

Author Comment

by:trausti
ID: 2557191

i'am on 'local area network' and like to send the picture to another computer on same network

Trausti
0
 

Expert Comment

by:Freaky
ID: 2557792

Which Delphi-version do you use ?

Greets

 Sascha
0
 

Expert Comment

by:Freaky
ID: 2557794

Which Delphi-version do you use ?

Greets

 Sascha
0
 

Expert Comment

by:Freaky
ID: 2557799

Which Delphi-version do you use ?

Greets

 Sascha
0
 

Author Comment

by:trausti
ID: 2557966
Delphi 4.0 and Delphi 5.0, Professional

Trausti
0
 

Author Comment

by:trausti
ID: 2558033
Delphi 4.0 and Delphi 5.0, Professional

Trausti
0
 

Accepted Solution

by:
Freaky earned 120 total points
ID: 2558424

Transfer the bitmap as Stream using the
Server/Client socket components.

It works pretty well.

Greets

 Sascha

0
 

Author Comment

by:trausti
ID: 2558444
any example?

Trausti
0
 

Expert Comment

by:Freaky
ID: 2558478

Posting the code in here would be a bit too much, but you can have a look at the example shipped with delphi.

It shows you the basics of using the socket-components.

It's in $(DELPHI)\DEMOS\INTERNET\CHAT


feel free asking me further questions

 Greets

  Sascha
0
 

Author Comment

by:trausti
ID: 2558519
thanks, i will test the demo and try

hear you again later...

Trausti
0
 

Author Comment

by:trausti
ID: 2564324
all works fine.

..<Trausti>.



0
 

Author Comment

by:trausti
ID: 2564326
all works fine.

..<Trausti>.



0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
code issue 8 156
error 1.1 400 Bad request idhttp delphi 18 152
Not able to call Delphi XE10 dll function from Delphi 6.0 4 37
How to Get Images From Server using App Tethering 11 40
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

820 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