private static void moveTo(Point p, MouseSpeed speed) { List <Point> wayPoints = new List <Point>(); switch (speed) { case MouseSpeed.Instant: MouseSimulater.moveTo(p); return; default: getWayPoints(Cursor.Position, p, ref wayPoints, (int)speed); foreach (Point waypoint in wayPoints) { MouseSimulater.moveTo(waypoint); Thread.Sleep(5); } return; } }
static public void MoveTo(Point p, MouseSpeed speed) { switch (speed) { case MouseSpeed.Instant: MouseSimulater.MoveTo(p); break; default: MouseSimulater.moveTo(p, speed); break; } }
static public void MoveTo(int x, int y, MouseSpeed speed) { MouseSimulater.MoveTo(new Point(x, y), speed); }
static public void MoveTo(int x, int y) { MouseSimulater.MoveTo(new Point(x, y)); }
static public void MoveTo(Point p) { MouseSimulater.moveTo(p); }