/// <summary> /// 点击某个位置 /// </summary> /// <param name="x"></param> /// <param name="y"></param> public static void ClickByLocation(int x, int y) { WindowFormAPI.mouse_event((int)(MouseEventFlags.LeftDown | MouseEventFlags.Absolute), x, y, 0, IntPtr.Zero); WindowFormAPI.mouse_event((int)(MouseEventFlags.LeftUp | MouseEventFlags.Absolute), x, y, 0, IntPtr.Zero); }