Screen Capture given application and window coords

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.

Cheers,

Sean

LVL 1
nzfireAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mike TomlinsonMiddle School Assistant TeacherCommented:
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:
http://support.microsoft.com/default.aspx?scid=kb;en-us;161299&Product=vb6

To save the captured area, use the SavePicture() function:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vb98/html/vbstmsavepicture.asp

~IM
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nzfireAuthor Commented:
Hi guys,

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

Cheers
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.