Tech Support > Microsoft Windows > Development Resources > SendInput() and Mouse Move
SendInput() and Mouse Move
Posted by suja on May 25th, 2004


Hi All,
I am simulating the mouse move operation with SendInput() API. But the
mouse pointer is jerking while moving. I am sending SendInput() in
every 20MS time period. Can any one help on this??

1)What is the apporipriate time frame so that this jerking movement is
not visible to the user?
2)What is the suitable values ( Range) that can be given to X/Y
distance in order to avoid this jerking movement
3)Is there any other API to do the same

Please help me on this
Thanks,
Suja

Posted by Sten Westerback on May 26th, 2004



"suja" <sujamoljames@yahoo.com> wrote in message
news:e3860966.0405250357.5f28d63d@posting.google.c om...
20 MS (Mega Seconds).. what a long time..
or did you mean 20 ms (milliseconds),.. that is
two timerticks... what a short time.

Are you making a virus to disturb the user
as much as possible? Or why move it all the time?


when needed and for relative movement you should cache
changes and update only every 10 pixels, after a timeout or
after n changes.

something....

- Sten





Similar Posts