Пример #1
0
        public List <Bitmap> GetResourceImages(Bot.Location clickAt, List <Bot.Location> resourceLocations)
        {
            var resourceLocationOffset = Constants.GetOffset(clickAt);

            touch.TouchDown();
            touch.MoveTo(Constants.GetPoint(clickAt));

            BotApplication.Wait(300);

            var images = resourceLocations.Select(resourceLocation =>
            {
                var capturePoint = Constants.GetPoint(resourceLocation);
                return(captureScreen.SnapShot(capturePoint.X + resourceLocationOffset.X, capturePoint.Y + resourceLocationOffset.Y, new Size(70, 35)));
            }).ToList();

            touch.TouchUp();
            touch.EndTouchData();

            return(images);
        }
Пример #2
0
 public Bitmap CaptureTradeWindow()
 {
     return(captureScreen.SnapShot(X, Y, Size));
 }
Пример #3
0
 public Bitmap SnapShotBuildingTitle()
 {
     return(screen.SnapShot(660, 120, new Size(550, 70)));
 }
 public Bitmap SnapShotBuildingTitle()
 {
     return(screen.SnapShot(400, 150, new Size(483, 70), "Check Building Title"));
 }