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 void InputWords(string message) { BotHelper.Wait(60); foreach (var character in message) { Keys key = KeyboardMapper.GetKey(character); Keyboard.KeyPress(key, 50); BotHelper.Wait(100); } BotHelper.Wait(60); }
public static void LeftClick(int x, int y, int delay = 50) { Mouse.Move(x, y); BotHelper.Wait(60); Mouse.PressButton(Mouse.MouseKeys.Left, delay); }