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
The problem is with your packing of the x,y coordinates.
y
You should have the following
((y << 0x10) | x)