I'm trying to emulate mouse input on an application using DirectX to draw the graphics and the API I have chosen is mouse_event (please don't tell me about SendInput unless it has a direct relation to my issue, I know it superseded by it) and this only seems to move the mouse. (in the incorrect position, I might add) I believe my syntax usage is correct & I've checked with MSDN to be sure but no avail Does anyone know what my issue is? If so, any help would be appreciated.
Thanks in advance.
mouse_event(MOUSEEVENTF_MOVE | MOUSEEVENTF_ABSOLUTE, 500, 250, 0, 0);
mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_ABSOLUTE, 500, 250, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP | MOUSEEVENTF_ABSOLUTE, 500, 250, 0, 0);