Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
        static public void MoveTo(Point p, MouseSpeed speed)
        {
            switch (speed)
            {
            case MouseSpeed.Instant:

                MouseSimulater.MoveTo(p);

                break;

            default:

                MouseSimulater.moveTo(p, speed);

                break;
            }
        }
Ejemplo n.º 3
0
 static public void MoveTo(int x, int y, MouseSpeed speed)
 {
     MouseSimulater.MoveTo(new Point(x, y), speed);
 }
Ejemplo n.º 4
0
 static public void MoveTo(int x, int y)
 {
     MouseSimulater.MoveTo(new Point(x, y));
 }
Ejemplo n.º 5
0
 static public void MoveTo(Point p)
 {
     MouseSimulater.moveTo(p);
 }