Solved

Video Hooking

Posted on 2002-07-01
4
292 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: 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

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

738 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