|
-
Dec 15th, 2000, 02:04 PM
#1
Thread Starter
Lively Member
Hi , is there any Active Com dll which deals with recording of mouse movement and also save the recorded mouse events into a new file so that later on , I can open this file and playback the mouse movement. I am using VB 6.
-
Dec 22nd, 2000, 06:25 AM
#2
Hyperactive Member
I got no idea!
Dude,
Do you mean, you want some AVI file create which shows mouse movement, or you want to create an OnMouseOver, OnMouseOut Event, or you want to acces the OnMouseMove Event. If so, you might be better off using C++.
Try again, and explain it more clearly.
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
Wak 
-
Jan 1st, 2001, 06:00 PM
#3
Fanatic Member
i think eng want's to record the positions of the mouse, and play them back later.
To record, i'd use GetCursorPos and save the movements to a PontAPI array. One it's done recording, id write it to a file or something.
To play back, read the file to a PointAPI array. The use SetCursorPos to set the individual positions.
If your doing this for show, it should be fine. If your doing it for a windows macros thing, you might instead save the (x,y) position of the mouse clicks.
Instead of polling for the click, though, set up a hook and wathc for mouse movements. Each time the mouse moves, subclass the form it's over, and wait for the click (wm_lbuttondown, followed by wm_lbuttonup). Record the (x,y) position. This is provided in lParam. You'll have to convert it to hex, split it in half (using left$ and right$), and convert each number back into decimal. Also record the delay between each click.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|