private static void MouseClick(int x , int y) { //int x = 100; //int y = 100; SetCursorPos(x, y); mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0); mouse_event(MOUSEEVENTF_LEFTUP, x, y, 0, 0); }