/// <summary> /// Simulates a left button up through the native methods /// </summary> /// <param name="handle">The handle of the window to click</param> /// <param name="point">The point to click</param> public static void LeftUp(IntPtr handle, Point point) { IntPtr wParam = IntPtr.Zero; NativeMethods.SendMessage(handle, (uint)MouseEvents.WM_LBUTTONUP, wParam, GetLParam(point)); }
/// <summary> /// Simulates a right button down through the native methods /// </summary> /// <param name="handle">The handle of the window to click</param> /// <param name="point">The point to click</param> public static void RightDown(IntPtr handle, Point point) { IntPtr wParam = IntPtr.Zero; NativeMethods.SendMessage(handle, (uint)MouseEvents.WM_RBUTTONDOWN, wParam, GetLParam(point)); }