PC Review


Reply
Thread Tools Rate Thread

Capture image of App#A's window from App#B

 
 
Frederick
Guest
Posts: n/a
 
      25th Apr 2009
How can I capture (an image) of the contents of Application #A window ...
from Application #B. Let's say there are two, totally separate, independent
applications running, #A & #B. From Application #B, I want to locate
Application #A, then locate #A's currently active desktop window and capture
an image of whatever's being shown.

Application #A - I have no idea what programming method/tools were used to
create this app, but is runs in XP.

Application #B (the imager capturer) - will be written using the .NET CLR
and either C# or VB.NET in a Winforms Applications.

Any pointers or help appreciated.
--
F.V.

 
Reply With Quote
 
 
 
 
Frederick
Guest
Posts: n/a
 
      25th Apr 2009
Found answers myself!

The easiest way to do this is to activate the window and to send an
Alt-PrtScr keypress event. After that you can simply read the captured image
from the clipboard. How to send a printscreen or alt-printscreen is explained
by me in this thread on EE on using SendKeys.
http://www.experts-exchange.com/Prog..._24246542.html

To find the window of a particular application, this link will help,
http://www.mycsharpcorner.com/Post.aspx?postID=32

To capture the screenshot of the whole screen or a particular are, this will
help
http://www.codeproject.com/KB/cs/TeboScreen.aspx

Once you obtain the handle to the application, find its location and
dimensions and capture the image of that area.



--
F.V.



"Frederick" wrote:

> How can I capture (an image) of the contents of Application #A window ...
> from Application #B. Let's say there are two, totally separate, independent
> applications running, #A & #B. From Application #B, I want to locate
> Application #A, then locate #A's currently active desktop window and capture
> an image of whatever's being shown.
>
> Application #A - I have no idea what programming method/tools were used to
> create this app, but is runs in XP.
>
> Application #B (the imager capturer) - will be written using the .NET CLR
> and either C# or VB.NET in a Winforms Applications.
>
> Any pointers or help appreciated.
> --
> F.V.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Capture image of App#A's window from App#B Frederick Microsoft VB .NET 1 25th Apr 2009 06:23 PM
Windows Deployment Services Capture Wizard, Image capture in WDS =?Utf-8?B?SmltIFByZW5kZXJnYXN0?= Windows XP Setup 1 18th May 2007 10:23 AM
Help: how to capture the image of a specific window? سيد£³ُ Microsoft C# .NET 1 2nd Dec 2005 07:05 AM
Image comparison, from image capture device Paul Aspinall Microsoft C# .NET 2 25th Jan 2005 09:39 PM
Image comparison, from image capture device Paul Aspinall Microsoft Dot NET Framework 2 25th Jan 2005 09:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:57 PM.