I prepare the input buffer like this
... buffer->mi.dx = x; buffer->mi.dy = y; buffer->mi.dwFlags = (MOUSEEVENTF_MOVE); SendInput(1, buffer, sizeof(I