MediatedCommunications / WindowsInput

Capture and Simulate Keyboard and Mouse Input
MIT License
111 stars 17 forks source link

MoveToVirtual doesn't work for me or i got it wrong #10

Closed DonoDayZ closed 3 years ago

DonoDayZ commented 3 years ago

private void button1_Click_1(object sender, EventArgs e) { WindowsInput.Simulate.Events().MoveToVirtual(10,10).Click().Invoke(); }

MoveToVirtual: it would be moving the cursor to some position without using my cursor, but it is moving my cursor. I would like to know how do I go to a position without moving the cursor.

TonyValenti commented 3 years ago

@DonoDayZ - I'm not sure what you mean. I'm not sure it is possible to move your cursor to a position without... moving your cursor to that position.

Can you give an example of what you want?

DonoDayZ commented 3 years ago

I was using SendMessage, to click on a certain position without moving my mouse. However, this only works on window windows. Then a friend told me he was using his WindowsInput, but I can't do this by clicking on a position without moving my mouse.

so i would like to know how i do to click on a certain position without moving my real mouse. so I could use the windows when the application is using a mousevirtual

when you try to simulate the mouse with the code, it is moving the actual mouse, Is it possible to create a virtual mouse with this package and move it.

TonyValenti commented 3 years ago

Oh! I know what you're mean now.

No. This package will not do that.

Windows has multiple "layers" in which input is processed. This package operates at the lowest layer by directly injecting data into the input buffer.