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);
        }
示例#2
0
 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());
 }
示例#4
0
 public static void Click(this IItem item)
 {
     InputSimulator.PostMessageMouseClickLeft((int)item.FloorCoordinate.ToScreenCoordinate().X, (int)item.FloorCoordinate.ToScreenCoordinate().Y);
 }
示例#5
0
 public static void Click(this RectangleF rectangleF)
 {
     InputSimulator.PostMessageMouseClickLeft(rectangleF.GetCenter());
 }