Results 1 to 3 of 3

Thread: Active X for Mouse Movement

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Posts
    71

    Question

    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.

  2. #2
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    Unhappy 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

  3. #3
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662
    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
  •  



Click Here to Expand Forum to Full Width