[Mouse] stop it !

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DaBo$$

    #1

    [Mouse] stop it !

    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

  • Randy A. Ynchausti

    #2
    Re: [Mouse] stop it !

    DaBo,
    [color=blue]
    > 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.[/color]

    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


    Comment

    Working...