Important alert: (current site time 7/16/2013 2:03:01 AM EDT)
 

winzip icon

[____A Great and Easy Mouse Position Recorder]

Email
Submitted on: 4/21/2003 5:41:18 PM
By: Jaime Muscatelli  
Level: Intermediate
User Rating: By 8 Users
Compatibility: VB 6.0
Views: 28703
author picture
(About the author)
 
     This is a mouse recorder example. It records an unlimited amount of mouse moves and then replayes them! (See ScreenShot). Uses imtermediate loops, the vb Split() function, and the mouse API. Give it a try. KEYWORDS: Jaime jaime Muscatelli muscatelli api API Api Split split SPLIT mouse Mouse MOUSE recorder Recorder RECORDER Play play PLAY GetCursorPos SetCursorPos GetCursorPos() SetCursorPos() pointapi PointApi POINTAPI cursor CURSOR Cursor

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 17 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
4/21/2003 8:43:35 PMA Allen

This, this is prety cool, but you need to have a doevents in your replay loop. you also need to have a stop button, it wouldn't be that hard, just a global variable, and the stop button changes that variable, then the loop checks. Maby you should do that. If you don't like its ok. Sincerely, A Allen
(If this comment was disrespectful, please report it.)

 
7/3/2003 6:35:58 AM

lala im bored pretty good but if u make it record mouse clicks then it would be better. mebe use a keylogger thingy to record mouse clicks.
(If this comment was disrespectful, please report it.)

 
12/16/2003 10:24:30 AM

Very Good I Need It To Complete My keyLogger.
(If this comment was disrespectful, please report it.)

 
6/8/2004 5:01:37 PM

Is cool code, and I have suggestion to improve it ..
I think you may also need to use other API calls to capture which window the mouse was move over, and record the windo handle along with the mouse position, so when you play it back the mouse will move over the same windows again.. this is just an opinion
(If this comment was disrespectful, please report it.)

 
7/17/2004 12:11:22 AM

Cool stuff
(If this comment was disrespectful, please report it.)

 
7/29/2004 1:23:09 PMAlireza .P

great,thank you very much.
(If this comment was disrespectful, please report it.)

 
1/24/2005 1:01:09 AMw.j.budes

Thank you!That's good!
(If this comment was disrespectful, please report it.)

 
6/16/2005 7:52:30 PMtonyn

what a mouserecorder needs is to record a timestamp with the xy coords - ONLY if the mouse has moved since last time - then you can record for a lot longer without wasting memory while the mouse is idle...
(If this comment was disrespectful, please report it.)

 
3/16/2006 12:27:16 AMMichael Fausett

used to move cursor around..great code..good job ;) 5 globes
(If this comment was disrespectful, please report it.)

 
8/24/2007 6:50:47 PMthetomester

very nice stuff.
i had one problem though, it wouldn't record the mouse clicks for me, and a suggestion, maybe you could make it stop once the user presses esc or something.
other than that, great.
(If this comment was disrespectful, please report it.)

 
2/17/2009 1:01:57 AMAhmed

Great Work I Love it , i have a suggestion thou you could add :
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = 27 Then End
End Sub

(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.