Click to See Complete Forum and Search --> : Active X for Mouse Movement
eng70640
Dec 15th, 2000, 01:04 PM
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.
Wak
Dec 22nd, 2000, 05:25 AM
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.
agent
Jan 1st, 2001, 05:00 PM
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.