Clicking mouse by sending messages

后端 未结 2 996
孤街浪徒
孤街浪徒 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:57

    The problem is with your packing of the x,y coordinates.

    1. y should be in the high order word
    2. You should use | (bitwise or) to combine the components of the coordinate pair

    You should have the following

    ((y << 0x10) | x)
    

提交回复
热议问题