1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
//Do it twice for double click. Leave the 4 zeros there all the time.
//I know exactly what you want lol, do this:
SetCursorPos(50, 100);
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
//This code will move your cursor to 50,100 position on your screen, then double click.
|