コード例 #1
0
ファイル: Mouse.cs プロジェクト: Overon/BotSuite
        /// <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));
        }
コード例 #2
0
ファイル: Mouse.cs プロジェクト: Overon/BotSuite
        /// <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));
        }