예제 #1
0
        public void leftClickText(string text)
        {
            if (TextRecognition.TextExists(text))
            {
                Point coords = TextRecognition.TextCoords(text);

                Mouse.Move(coords.X, coords.Y);
                Mouse.PressButton(Mouse.MouseKeys.Left, 150);
            }
        }
예제 #2
0
        public void waitForText(string text)
        {
            bool exists = TextRecognition.TextExists(text);

            while (!exists)
            {
                exists = TextRecognition.TextExists(text);
                Thread.Sleep(1000);
            }
        }