R
R
redcircle2018-01-16 01:16:58
Mouse
redcircle, 2018-01-16 01:16:58

How to move the mouse cursor in Windows programmatically?

I would like an analogue of the Linux / dev / uinput - something like a custom mouse driver controlled from the application.
Required functionality - moving the cursor, pressing "buttons" on request from the application.
Move around the entire screen, not just in the application window area.
What are the possibilities here?
Preferably with C++ interface.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2018-01-16
@redcircle

cursor movement: SetCursorPos .
pressing the buttons - you need to look for the window under the cursor and send SendMessage to it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question