Ejemplo n.º 1
0
        /// <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));
        }
Ejemplo n.º 2
0
        /// <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));
        }