Clicking mouse by sending messages

后端 未结 2 896
孤街浪徒
孤街浪徒 2021-01-18 11:01

I\'m trying to send mouse clicks to a program. As I don\'t want the mouse to move, I don\'t want to use SendInput or mouse_event, and because the window that should receive

2条回答
  •  情话喂你
    2021-01-18 11:54

    You need to pack the coordinates correctly like Chris says, also remember that x and y are client coordinates, call ScreenToClient() to convert screen coordinates.

提交回复
热议问题