private void castSpellOnGrp(string spell, int id)
        {
            Log.Write("target raid member" + id);
            switch (id)
            {
            case 0:
                WoW.KeyDown(WoW.Keys.ShiftKey);
                WoW.KeyDown(WoW.Keys.LMenu);
                break;

            case 1:
                WoW.KeyDown(WoW.Keys.ShiftKey);
                break;

            case 2:
                WoW.KeyDown(WoW.Keys.LMenu);
                break;

            case 3:
                WoW.KeyDown(WoW.Keys.ControlKey);
                break;

            case 4:
                WoW.KeyDown(WoW.Keys.ControlKey);
                WoW.KeyDown(WoW.Keys.LMenu);
                break;
            }
            WoW.CastSpell(spell);
            switch (id)
            {
            case 0:
                WoW.KeyUp(WoW.Keys.ShiftKey);
                WoW.KeyUp(WoW.Keys.LMenu);
                break;

            case 1:
                WoW.KeyUp(WoW.Keys.ShiftKey);
                break;

            case 2:
                WoW.KeyUp(WoW.Keys.LMenu);
                break;

            case 3:
                WoW.KeyUp(WoW.Keys.ControlKey);
                break;

            case 4:
                WoW.KeyUp(WoW.Keys.ControlKey);
                WoW.KeyUp(WoW.Keys.LMenu);
                break;
            }
        }
        private void TargetOnRaid(int id)
        {
            Log.Write("target raid member" + id + " modulo: " + id % 8 + "div: " + (id - 1) / 8);
            switch (id % 8)
            {
            case 0:
                WoW.KeyDown(WoW.Keys.ControlKey);
                WoW.KeyDown(WoW.Keys.LMenu);
                WoW.KeyDown(WoW.Keys.ShiftKey);
                break;

            case 2:
                WoW.KeyDown(WoW.Keys.LMenu);
                break;

            case 3:
                WoW.KeyDown(WoW.Keys.ControlKey);
                break;

            case 4:
                WoW.KeyDown(WoW.Keys.ShiftKey);
                break;

            case 5:
                WoW.KeyDown(WoW.Keys.ControlKey);
                WoW.KeyDown(WoW.Keys.ShiftKey);
                break;

            case 6:
                WoW.KeyDown(WoW.Keys.ShiftKey);
                WoW.KeyDown(WoW.Keys.LMenu);
                break;

            case 7:
                WoW.KeyDown(WoW.Keys.ControlKey);
                WoW.KeyDown(WoW.Keys.LMenu);
                break;
            }
            WoW.CastSpell("target" + ((id - 1) / 8));
            switch (id % 8)
            {
            case 0:
                WoW.KeyUp(WoW.Keys.ControlKey);
                WoW.KeyUp(WoW.Keys.LMenu);
                WoW.KeyUp(WoW.Keys.ShiftKey);
                break;

            case 2:
                WoW.KeyUp(WoW.Keys.LMenu);
                break;

            case 3:
                WoW.KeyUp(WoW.Keys.ControlKey);
                break;

            case 4:
                WoW.KeyUp(WoW.Keys.ShiftKey);
                break;

            case 5:
                WoW.KeyUp(WoW.Keys.ControlKey);
                WoW.KeyUp(WoW.Keys.ShiftKey);
                break;

            case 6:
                WoW.KeyUp(WoW.Keys.ShiftKey);
                WoW.KeyUp(WoW.Keys.LMenu);
                break;

            case 7:
                WoW.KeyUp(WoW.Keys.ControlKey);
                WoW.KeyUp(WoW.Keys.LMenu);
                break;
            }
        }