Solved

Video Hooking

Posted on 2002-07-01
4
286 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

744 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

13 Experts available now in Live!

Get 1:1 Help Now