Sometimes it seems multiple mouse clicks are received by the application who owns (dx, dy) location while the following code section only executes once:
mouse_event(MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE, (DWORD)dx, (DWORD)dy, 0, 0);
mouse_event(MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_LEFTDOWN, (DWORD)dx, (DWORD)dy, 0, 0);
mouse_event(MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_LEFTUP, (DWORD)dx, (DWORD)dy, 0, 0);
Can someone explain this? Should I use some other function to avoid it? BTW I can only control the application which sends out the mouse click.
Thank you in advance!