Пример #1
0
        public static void InputWords(string message, int keyDelay = 50, int delay = 100)
        {
            CMDHelper.Sleep(60);

            foreach (var character in message)
            {
                Keys key = KeyboardInput.GetKey(character);
                Keyboard.KeyPress(key, keyDelay);
                CMDHelper.Sleep(delay);
            }
            CMDHelper.Sleep(60);
        }
Пример #2
0
        public static void WaitForText(int x, int y, int width, int heigth, string text)
        {
            Rectangle rect = new Rectangle(x, y, width, heigth);

            bool exists = Recognition.TextExists2(rect, text);

            while (!exists)
            {
                CMDHelper.Sleep(1000);
                exists = Recognition.TextExists2(rect, text);
            }
        }
Пример #3
0
 public static void LeftClick(int x, int y, int delay = 50)
 {
     InputManager.Mouse.Move(x, y);
     CMDHelper.Sleep(60);
     InputManager.Mouse.PressButton(InputManager.Mouse.MouseKeys.Left, delay);
 }