示例#1
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);
        }
示例#2
0
 /// <summary>
 /// Converts a percent point to an absolute point
 /// </summary>
 /// <param name="percentPoint">percent point to convert to absolute</param>
 /// <returns></returns>
 public Point RelativeToAbsolute(Info.PercentPoint percentPoint)
 {
     return(RelativeToAbsolute(percentPoint.X, percentPoint.Y));
 }
示例#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);
        }