2

I've read multiple posts on how TeamViewer establishes a connection to the computer, but none of them seem to explain how it actually moves the cursor on the screen or clicks.

What commands is it running on my computer? Can I run those commands on my own without TeamViewer?

Pro Q
  • 439

1 Answers1

3

All Windows programs can set the position of the mouse cursor with the SetCursorPos function.

Mouse clicks are one of the things that can be simulated with the SendInput function. Specifically, the dwFlags field of the MOUSEINPUT structure can specify a "mouse up" or "mouse down" action for any mouse button.

Ben N
  • 42,308