/// <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); }
/// <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)); }
/// <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); }