Screen Capture given application and window coords

Posted on 2006-03-26
Last Modified: 2010-04-07
Hi All,

I know that there are questions similar to this, but I'm in a hurry to get some code working with as little change/editing of the code

Basically a function that captures the screen area (of which the dimensions need to be specified) of a given application and save the image.

What am I trying to do?

Example: Using MS Word, but I only want to capture the text, not the whole window.

I'll award max points to a working example.



Question by:nzfire
    LVL 85

    Assisted Solution

    by:Mike Tomlinson
    Microsoft has a great project in their Knowledge Base that does screenshots via API's only...

    The routines in the example can:

    Capture the entire contents of a form.
    Capture the client area of a form.
    Capture the entire screen.
    Capture the active window on the screen.
    Capture any portion of any window given a handle to it.
    Create a Picture object from a bitmap and a palette.
    Print a Picture object as large as possible on the page.

    It can be found here:;en-us;161299&Product=vb6

    To save the captured area, use the SavePicture() function:

    LVL 9

    Accepted Solution

    LVL 1

    Author Comment

    Hi guys,

    Thanks for the reply. As I used bits and pieces from both posts, I have split the points.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    760 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

    12 Experts available now in Live!

    Get 1:1 Help Now