Solved

Video Hooking

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows 10 start screen issues 9 55
vb6 - Transfer from MSHFlexgrid1 to xls issue 8 54
Export Data to Different .csv Files 26 114
VB6 - Scroll Mouse wheel on Picturebox 13 73
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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 …
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 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…

860 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