public void PerformGesture(IGesture gesture) { // TODO Works only for default portrait orientation, need to take orientation into account var array = gesture.GetScreenPoints().ToArray(); foreach (var point in array.Take(array.Length - 1)) { this.MoveCursorTo(point); this.LeftButtonDown(); Thread.Sleep(gesture.PeriodBetweenPoints); } this.MoveCursorTo(array.Last()); this.LeftButtonUp(); }