INPUT ipt [1].
Void MMove (long x, long y)
{
MOUSEINPUT mipt;
ZeroMemory (& amp; Mipt, sizeof (MOUSEINPUT));
Mipt. DwFlags=MOUSEEVENTF_MOVE | MOUSEEVENTF_ABSOLUTE;
Mipt. Dx=x * 65535/GetSystemMetrics (SM_CXSCREEN);
Mipt. Dy=y * 65535/GetSystemMetrics (SM_CYSCREEN);
Ipt [0]. Type=INPUT_MOUSE;
Ipt [0]. Mi=mipt;
if (! SendInput (1, ipt, sizeof (INPUT)))
,0,0,0 MessageBox (0);
Sleep (10);
}
The problem is this:
Call this function after a 32-bit system (Windows 7/XP) measured in mouse screen location without moving, but think it moved as if system, because the shape of the mouse cursor into the shape of the target coordinates, so the location of the mouse has been obtained by GetCursorPos, found that is the target position, but the mouse still stay in place, then if slight move the mouse, from where he started to move, seems to be no refresh,
Any Suggestions will be is included, THX in advance!