public void waitForText2(string processName, string text) { bool exists = TextRecognition.TextExists2(processName, text); while (!exists) { Thread.Sleep(1000); exists = TextRecognition.TextExists2(processName, text); } }
public static void WaitForText(int x, int y, int width, int heigth, string text) { Rectangle rect = new Rectangle(x, y, width, heigth); bool exists = TextRecognition.TextExists2(rect, text); while (!exists) { BotHelper.Wait(1000); exists = TextRecognition.TextExists2(rect, text); } }
public static bool TextExists(int x, int y, int width, int heigth, string text) { bool exist; try { exist = TextRecognition.TextExists2(new Rectangle(x, y, width, heigth), text); } catch { exist = false; } return(exist); }
public static bool TextExists(int x, int y, int width, int heigth, string text) { return(TextRecognition.TextExists2(new Rectangle(x, y, width, heigth), text)); }
public bool textExists(string processName, string text) { return(TextRecognition.TextExists2(processName, text)); }