Nik Feign
Nik Feign

Reputation: 31

Creating a 'second' mouse to do actions without using your normal one

I'm looking to develop a program in C# that has a second mouse. What I mean by this is that if I pressed the 1 button on my keyboard, it would click on a certain location on the client window. But when the button is clicked, your normal, visible cursor doesn't move and you can freely control it.

I have no idea if this is possible and I have a feeling it won't be, but if it is... Does anyone have an idea how to do it? Or where I could start?

Upvotes: 2

Views: 1929

Answers (1)

3Pi
3Pi

Reputation: 1914

How important is it that the mouse does not move? If not terribly, You could jump the location of the mouse to where you needed to click, simulate the click, and then jump the mouse back to where it was. As this could be done very quickly, it would still give the appearance of having free control over the mouse.

Upvotes: 1

Related Questions