예제 #1
0
파일: InputHelper.cs 프로젝트: AneAniks/RAI
        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
파일: InputHelper.cs 프로젝트: AneAniks/RAI
 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);
 }