Exemplo n.º 1
0
 public void SetXmlAttribs(XmlElement e)
 {
     e.SetAttribute("slot", Slot.ToString());
     e.SetAttribute("key", ((int)Key.CurrentKey).ToString());
     e.SetAttribute("active", IsActive.ToString());
     e.SetAttribute("func", AvailableFunctions.StringifyType(Type));
 }
Exemplo n.º 2
0
 public void Process()
 {
     if (IsActive && AvailableFunctions.Potion(0, ScreenTools.GetPixelColor(Coords.Coords.Potion50.x, Coords.Coords.Potion50.y).Item1))
     {
         if (Key.IsMouse)
         {
             if (Key.CurrentKey == Keys.LButton)
             {
                 HardwareRobot.DoLeftClick();
             }
             else if (Key.CurrentKey == Keys.RButton)
             {
                 HardwareRobot.DoRightClick();
             }
         }
         else
         {
             HardwareRobot.PressKey((char)Key.CurrentKey);
         }
     }
 }