public static void Click(this IItem item) { var offsetFloorCoordinate = item.FloorCoordinate.Offset(0, 0, (item.RadiusScaled * 3)); var offsetScreenCoordinate = offsetFloorCoordinate.ToScreenCoordinate(); var point = new Point((int)offsetScreenCoordinate.X, (int)offsetScreenCoordinate.Y); InputSimulator.PostMessageMouseClickLeft(point); }
private void ExecuteQolMacro() { if (!Hud.Game.IsInTown || (!Hud.Render.IsShopOpen() && !Hud.Inventory.StashMainUiElement.Visible)) { InputSimulator.PostMessageMouseClickLeft(Hud.Window.CursorX, Hud.Window.CursorY); } else if (Hud.Inventory.HoveredItem != null) { Hud.Inventory.GetItemRect(Hud.Inventory.HoveredItem).RightClick(); } }
public static void Click(this IUiElement uiElement) { InputSimulator.PostMessageMouseClickLeft(uiElement.Rectangle.GetCenter()); }
public static void Click(this IItem item) { InputSimulator.PostMessageMouseClickLeft((int)item.FloorCoordinate.ToScreenCoordinate().X, (int)item.FloorCoordinate.ToScreenCoordinate().Y); }
public static void Click(this RectangleF rectangleF) { InputSimulator.PostMessageMouseClickLeft(rectangleF.GetCenter()); }