private void btnGoLeft_Click(object sender, EventArgs e) { ActionManager.SendAction(() => { WinUtils.ActivateWindow(Constants.KO_WINDOW); }, 2, () => { MouseOperations.Click(directions[txtLeft]); }); }
private void PerformClick() { if (cur++ < max && !valid) { mousePos = new Vector(mousePos.X, mousePos.Y - 1); ActionManager.SendAction(() => { MouseOperations.Click(mousePos); }, 0.05f, PerformClick); } }
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); }
protected void SelectSelf(Action callback = null) { if (!IsActive) { return; } if (!Character.IsInParty) { callback?.Invoke(); return; } else { MouseOperations.Click(ScreenPosition.Center); callback?.Invoke(); } }
protected void ClickAt(Point point, Action callback, EClickType clickType) { MouseOperations.Click(point, callback, clickType); }
protected void ClickAt(Point point, Action callback) { MouseOperations.Click(point, callback); }
protected void ClickAt(Vector point, Action callback, EClickType clickType) { MouseOperations.Click(point.ToPoint(), callback, clickType); }
protected void ClickAt(Vector point, Action callback) { MouseOperations.Click(point.ToPoint(), callback); }
protected void ClickAt(Point point) { MouseOperations.Click(point); }
private void ClickLeft() { MouseOperations.Click(directions[txtLeft]); }
private void ClickRight() { MouseOperations.Click(directions[txtRight]); }
private void ClickDown() { MouseOperations.Click(directions[txtDown]); }
private void ClickUp() { MouseOperations.Click(directions[txtUp]); }