Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Video Hooking

Posted on 2002-07-01
4
Medium Priority
?
296 Views
Last Modified: 2011-09-20
I want to write an app that hooks the changes in the video, so they can be played back like a movie of the screen activity.  Can anyone help me get started?  I am looking for working examples of this.
0
Comment
Question by:perkster
4 Comments
 
LVL 18

Expert Comment

by:mdougan
ID: 7125439
When you say "changes in the video" are you taking about changes to the "desktop", meaning anychanges that appear on the screen?

If so, then there are pieces of code that I could give you that you might be able to pull together to get it to work, but I don't know how satisfying it will be for you.

The basic approach would be to get the window handle of the desktop window (I think if you use GetWindow(0) or some API call like that you can get the window handle of the desktop.  Once you have that, you can hook the window proc of that window.

The window proc will be called whenever the window needs to repaint (which for the desktop is probably very often).  You can look for this message, and then do something each time the message arrives.  Namely, you can get the hDC of the desktop window, and then bitblt it to a picturebox, then save the picture out to a bmp file.

However, it will take some time to output each bmp, and if you are getting a lot of paint events, then you run the risk of bogging down the desktop refreshes.

Ideally, you'd be able to send each screen capture to a frame in an AVI or MPEG video, but you'd probably need a special control for this.  I'm not sure how it would work.

Saving all of these bmps will take up a huge amount of disk space (even if you convert the pictures to jpg before saving them).  So, it's not clear how practical your request is.
0
 

Author Comment

by:perkster
ID: 7128271
I appreciate the good info.
What I am looking for is to create an application similar to Lotus ScreenCam, etc.  where you can record the activity on your screen like a movie.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7971004
Hi perkster,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Refund points and save as a 0-pt PAQ.

perkster, Please DO NOT accept this comment as an answer.
EXPERTS: Post a comment if you are certain that an expert deserves credit.  Explain why.
==========
DanRollins -- EE database cleanup volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8018650
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…

972 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