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



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/Programming/Languages/.NET/Visual_Basic.NET/Q_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.

.



Relevant Pages

  • Re: web page screen capture utility?
    ... capture of a web page? ... You can use 'import' to grab a shot of a particular window given its ... then do a firefox -remote URL command to load the page i want ... Unless the screenshot is critical, ...
    (comp.os.linux.misc)
  • Re: Is there a screencapture utility?
    ... window capture. ... >>|After you've taken the screenshot, ...
    (Debian-User)
  • Re: print screen but only the top open "window"
    ... Pressing +copies only the active Window to ... the clipboard. ... paste the contents of the clipboard (your screenshot) into the open ... How to Capture Screen Shots in Windows Using the Print Screen Key ...
    (microsoft.public.windowsxp.general)
  • FindWindow
    ... I need to make a screenshot of a window to find out, ... coordinates of the window I want to capture. ... The problem is that I didn't find a way to enumerate the windows on ...
    (comp.lang.java.gui)
  • SixFiles Best Mac OS X Freebies
    ... The latest Mac OS X freeware software news from Mac.SixFiles.com. ... The Image Browser window is split into two sections. ... screentabular display in an overview windowdisplay in the menu-bardisplay ... * Capture Me 1.3.2 ...
    (comp.sys.mac.apps)