예제 #1
0
        private WowUnit GetPositionMouseOverUnit(Point point)
        {
            var offsetPoint = KeyboardCommandDispatcher.GetKeyboard().GetOffsetPoint(point);
            Cursor.Position = offsetPoint;
            Task.Delay(10).Wait();
            var mouseOverUnit = CommandManager.GetDefault().MouseOverUnit;

            return ObjectManager.Units.FirstOrDefault(u => u.Guid == mouseOverUnit);
        }
예제 #2
0
 private void InternalSkin(Point point)
 {
     _logger.Information($"Attempting to skin unit");
     KeyboardCommandDispatcher.GetKeyboard().SendShiftClick(point);
     Task.Delay(2400).Wait();
 }