Пример #1
0
 private void btnGoLeft_Click(object sender, EventArgs e)
 {
     ActionManager.SendAction(() => { WinUtils.ActivateWindow(Constants.KO_WINDOW); }, 2, () =>
     {
         MouseOperations.Click(directions[txtLeft]);
     });
 }
Пример #2
0
 private void PerformClick()
 {
     if (cur++ < max && !valid)
     {
         mousePos = new Vector(mousePos.X, mousePos.Y - 1);
         ActionManager.SendAction(() => { MouseOperations.Click(mousePos); }, 0.05f, PerformClick);
     }
 }
Пример #3
0
 void ClickAt(Point point, Action callback = null)
 {
     ActionManager.SendAction(() => { WinUtils.ActivateWindow(Constants.KO_WINDOW); }, 0.01f, () =>
     {
         MouseOperations.Click(point);
         if (callback != null)
         {
             ActionManager.SendAction(() => { }, 0.1f, () => { callback.Invoke(); });
         }
     });
 }
        public void ClickPartyMember(int index)
        {
            if (index < 0 || index >= _partyBarPoints.Count)
            {
                return;
            }

            Point pos = _partyBarPoints[index];

            MouseOperations.Click(pos);
        }
Пример #5
0
        protected void SelectSelf(Action callback = null)
        {
            if (!IsActive)
            {
                return;
            }

            if (!Character.IsInParty)
            {
                callback?.Invoke();
                return;
            }
            else
            {
                MouseOperations.Click(ScreenPosition.Center);
                callback?.Invoke();
            }
        }
Пример #6
0
 protected void ClickAt(Point point, Action callback, EClickType clickType)
 {
     MouseOperations.Click(point, callback, clickType);
 }
Пример #7
0
 protected void ClickAt(Point point, Action callback)
 {
     MouseOperations.Click(point, callback);
 }
Пример #8
0
 protected void ClickAt(Vector point, Action callback, EClickType clickType)
 {
     MouseOperations.Click(point.ToPoint(), callback, clickType);
 }
Пример #9
0
 protected void ClickAt(Vector point, Action callback)
 {
     MouseOperations.Click(point.ToPoint(), callback);
 }
Пример #10
0
 protected void ClickAt(Point point)
 {
     MouseOperations.Click(point);
 }
Пример #11
0
 private void ClickLeft()
 {
     MouseOperations.Click(directions[txtLeft]);
 }
Пример #12
0
 private void ClickRight()
 {
     MouseOperations.Click(directions[txtRight]);
 }
Пример #13
0
 private void ClickDown()
 {
     MouseOperations.Click(directions[txtDown]);
 }
Пример #14
0
 private void ClickUp()
 {
     MouseOperations.Click(directions[txtUp]);
 }