Download my projects from SourceForge.net
I have Tested this for a while and i though i would release it basically it Unlocks the macro and also press number 1 button or the 0 button using a timer that you can set,
the way it is setup just now it uses mouse button 5 and 6 its is set by using the virtual keys you can change that to your own preferences,
the reason i added button 0 was i needed a basic unmonitored button press for eg /click LFGDungeonReadyDialogEnterDungeonButton macro, basically drop that macro on button 0 and activate it, then you don't miss LFR usually it pop`s when your making a cupa lol,
right on to button 1 this button is monitored for casting and channeling when its doing ether one it will stop pressing button1 until its done,
all you need now to set i up is SDMacro when your in game just type /sdm and here is a example of a Frost DK
Code:
/startattack
/run if UnitHealth("player")/UnitHealthMax("player")<0.25 then RunMacroText("/use Healthstone") end;
/run local _,_,_,c=UnitBuff("player","Blood Charge") if c>=5 and GetSpellCooldown("Blood Tap")==0 then CastSpellByName("Blood Tap") end;
/run if GetSpellCooldown("Outbreak")==0 then CastSpellByName("Outbreak") end;
/run if UnitPower("player")/UnitPowerMax("player")>0.32 and GetSpellCooldown("Frost Strike")==0 then CastSpellByName("Frost Strike") end;
/run if UnitBuff("player","Freezing Fog") then CastSpellByName("Howling Blast") elseif UnitBuff("player","Killing Machine") then CastSpellByName("Obliterate") else end;
/run if IsSpellInRange("Plague Strike")==1 and not UnitDebuff("Target","Blood Plague") then CastSpellByName("Plague Strike") else end;
/run if UnitBuff("player","Horn Of Winter") and GetSpellCooldown("Horn of Winter")==0 then CastSpellByName ("Horn of Winter") elseif GetSpellCooldown("Howling Blast")==0 then CastSpellByName("Howling Blast") else end;
/run if GetSpellCooldown("Empower Rune Weapon")==0 then CastSpellByName("Empower Rune Weapon") end;
/run if GetSpellCooldown("Pillar of Frost")==0 then CastSpellByName("Pillar of Frost") end;
/run if UnitHealth("target")/UnitHealthMax("target")<0.35 then CastSpellByName("Soul Reaper") end;
/run UIErrorsFrame:Clear();
/run StaticPopup_Hide("MACRO_ACTION_FORBIDDEN");
once you have the macro drop it on button 1 in game and when you press mouse button 6 or the button you assign it will activate the macro for you
few things to remember when you chat remember to deactivate or you get 1`s and 0`s and mind keep the ini file with the exe so drop them in the same folder, if your in window mode it will tell you when they are on and off, maby some one will give me a hint on how to print in game on full screen