Пример #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;
            }
        }
Пример #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;
            }
        }
Пример #3
0
 static public void MoveTo(int x, int y, MouseSpeed speed)
 {
     MouseSimulater.MoveTo(new Point(x, y), speed);
 }
Пример #4
0
 static public void MoveTo(int x, int y)
 {
     MouseSimulater.MoveTo(new Point(x, y));
 }
Пример #5
0
 static public void MoveTo(Point p)
 {
     MouseSimulater.moveTo(p);
 }