[Mouse] stop it !

  • Thread starter Thread starter DaBo$$
  • Start date Start date
D

DaBo$$

hi !

I have created a program which move mouse cursor, but i
want to :

1- stop physical mouse move.
2- when a press a keyboard button, execute the same
action if a press the mouse button.

In fact, i want to remplace the physical mouse motion.

All that in c#.
please help me.

thank you for your answers.
sorry for speaking broken english.
bye
 
DaBo,
I have created a program which move mouse cursor, but i
want to :

1- stop physical mouse move.
2- when a press a keyboard button, execute the same
action if a press the mouse button.

In fact, i want to remplace the physical mouse motion.

Here is one way I can think of (off the top of my head):

1) Have some event that records where the mouse pointer should stay at.
2) Implement OnMouseMove( ) to check if the event has occurred and then
move the mouse pointer back to the location obtained from step 1.
3) Have an event that releases the "sticky" mouse location.

Hope that helps.

Regards,

Randy
 
Back
Top