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
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.