INPUT[] buffer = new INPUT[1];
buffer[0].type = INPUT_MOUSE;
buffer[0].lol.dx = 0;
buffer[0].lol.dy = 0;
buffer[0].lol.mouseData = 0;
buffer[0].lol.dwFlags = MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP ;
buffer[0].lol.time = 0;
buffer[0].lol.dwExtraInfo = (IntPtr)0;
SendInput(1, buffer, Marshal.SizeOf(buffer[0]));
everytime i write this code it gives the error that i have mention. Is it impossible to put left down and left up tgt?