What could be the problem? Windows 10 x64. How many did not try in any way fail to organize a program click of the mouse through these api functions. (pressing does not occur absolutely anywhere!)
static extern void mouse_event( uint dwFlags, uint dx, uint dy, uint dwData, IntPtr dwExtraInfo ); static public void MouseClick() { Point ptCoords = new Point(); GetCursorPos(ref ptCoords); uint x = (uint) ptCoords.X; uint y = (uint) ptCoords.Y; System.IntPtr ptr = new IntPtr(); mouse_event(0x0002, x, y, 0, ptr); mouse_event(0x0004, x, y, 0, ptr); }