예제 #1
0
 /// <summary>
 /// Releases the specified button at a specific location.
 /// </summary>
 /// <param name="button">The button.</param>
 /// <param name="location">The location to release the button at.</param>
 /// <exception cref="System.NotImplementedException"></exception>
 public static void Up(IntPtr hWnd, MouseButtons button, Point location)
 {
     NativeUtilities.DispatchMessage(hWnd, (int)MouseButtonToMessage(button, true), IntPtr.Zero, new IntPtr(NativeUtilities.MakeLParam(location.X, location.Y)), false);
 }
예제 #2
0
 public void Click()
 {
     NativeUtilities.DispatchMessage(Handle, (int)NativeEnums.BM.CLICK, IntPtr.Zero, IntPtr.Zero);
 }
예제 #3
0
        /// <summary>
        /// Releases the specified button.
        /// </summary>
        /// <param name="hWnd">The window handle.</param>
        /// <param name="button">The button.</param>
        /// <exception cref="System.NotImplementedException"></exception>
        public static void Up(IntPtr hWnd, Keys button)
        {
            IntPtr lParam = new IntPtr(0x00000001 | (StUtil.Native.Internal.NativeMethods.MapVirtualKey((uint)button, 0) << 16));

            NativeUtilities.DispatchMessage(hWnd, (int)NativeEnums.WM.KEYUP, new IntPtr((int)button), lParam, true);
        }