Beispiel #1
0
        /// <summary>
        /// Clicks the given "other" setting
        /// </summary>
        /// <param name="index">index of the other setting to click</param>
        public void ClickOther(int index)
        {
            Point absolute = RelativeToAbsolute(Info.otherPoints[index]);

            MouseOperations.LeftMouseClick(flashplayerHandle, absolute);
        }
Beispiel #2
0
        /// <summary>
        /// Moves the mouse to the given percent point
        /// </summary>
        /// <param name="pointPercent">percent point to move mouse to</param>
        public void MoveMouse(Info.PercentPoint pointPercent)
        {
            Point absolute = RelativeToAbsolute(pointPercent.X, pointPercent.Y);

            MouseOperations.SetCursorPosition(flashplayerHandle, absolute);
        }
Beispiel #3
0
        /// <summary>
        /// Clicks the mouse at the given percent point
        /// </summary>
        /// <param name="pointPercent">percent point to click at</param>
        public void ClickMouse(Info.PercentPoint pointPercent)
        {
            Point absolute = RelativeToAbsolute(pointPercent.X, pointPercent.Y);

            MouseOperations.LeftMouseClick(flashplayerHandle, absolute);
        }
Beispiel #4
0
        /// <summary>
        /// Moves the mouse to the given x and y percent
        /// </summary>
        /// <param name="xPercent">x percent to move mouse to, 0-100</param>
        /// <param name="yPercent">y percent to move mouse to, 0-100</param>
        public void MoveMouse(float xPercent, float yPercent)
        {
            Point absolute = RelativeToAbsolute(xPercent, yPercent);

            MouseOperations.SetCursorPosition(flashplayerHandle, absolute);
        }
Beispiel #5
0
        /// <summary>
        /// Clicks the mouse at the given x and y percent
        /// </summary>
        /// <param name="xPercent">x percent to click at, 0-100</param>
        /// <param name="yPercent">y percent to click at, 0-100</param>
        public void ClickMouse(float xPercent, float yPercent)
        {
            Point absolute = RelativeToAbsolute(xPercent, yPercent);

            MouseOperations.LeftMouseClick(flashplayerHandle, absolute);
        }