Hi Folks,
I'm trying to simulate a mouse click in some windows, sending this:
reason for that is, I don't want the cursor to move. SendInput works of course, but that moves the cursor around.Code:SendMessage(hWnd, WM_LBUTTONDOWN, (WPARAM)0, (LPARAM)MAKELPARAM(ptCursor.x, ptCursor.y)); SendMessage(hWnd, WM_LBUTTONUP, (WPARAM)0, (LPARAM)MAKELPARAM(ptCursor.x, ptCursor.y));
Spy++ tells me those notifications do arrive, but nothing happens in the window ?




Reply With Quote