Solved

Video Hooking

Posted on 2002-07-01
4
289 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

786 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