PDA

View Full Version : Solved: Mouse/Cursor Speed



asingh
05-24-2007, 09:48 PM
Is there any way..that..the mouse speed can be controlled. I want to slow it down..run some display code..then bring it back to normal...

Basically I am trying to create a module which will move the mouse for a certain amount of time...I have gotten the mouse to move...as per the user input..but its moving too 'fast'. Any way to slow down the cursor.

I am using the following handlers:
Const MOUSEEVENTF_LEFTDOWN = &H2
Const MOUSEEVENTF_LEFTUP = &H4
Const MOUSEEVENTF_MIDDLEDOWN = &H20
Const MOUSEEVENTF_MIDDLEUP = &H40
Const MOUSEEVENTF_MOVE = &H1
Const MOUSEEVENTF_ABSOLUTE = &H8000
Const MOUSEEVENTF_RIGHTDOWN = &H8
Const MOUSEEVENTF_RIGHTUP = &H10

What should be used to slow the cursor down.

By the way, I based my program from a download available at: [took the core API from here]

http://www.excelthoughts.com/2005/06/automatic-mouse-movement-on-userforms.html

thanks and regards,

asingh

Ivan F Moala
05-25-2007, 02:48 AM
Increase the number of moves

Const = NUM_MOVES

asingh
05-25-2007, 04:01 AM
perfect..........!

thanks a lot