Exemple #1
0
        public static void LeftClickImage(string image)
        {
            if (Recognition.ImageExists(image))
            {
                Point coords = Recognition.ImageCoords(image);

                Mouse.Move(coords.X, coords.Y);
                Mouse.PressButton(Mouse.MouseKeys.Left, 150);
            }
        }
Exemple #2
0
        public static void WaitForImage(string imagePath)
        {
            bool exists = Recognition.ImageExists(imagePath);

            while (!exists)
            {
                exists = Recognition.ImageExists(imagePath);
                Thread.Sleep(1000);
            }
        }
Exemple #3
0
 public static bool ImageExist(string imagePath)
 {
     return(Recognition.ImageExists(imagePath));
 }