Thursday, March 19, 2009  [General]Toggling Maul part 2 - making
a better toggle  Some really nice discussion about the maul
macro talked about yesterday. Instead of answering in that post
some of the questions that came up, I figured it'd be easier to
talk more about it in another post.  First off, you can remove
the "if not InCombatLockdown() then...end" part of the macro.
That gets you a ton of extra characters, which allows you to do
something like this instead:  /run local i=GetMacroIndexByName
("Ma") local mt=GetMacroBody(i) local a=strlen(mt) local
v="/cast Mangle" if a < 15 then mt=v.."\n/cast
[nomodifier]!Maul" else mt=v end local n,t,_,l=GetMacroInfo(i)
EditMacro(i,n,t,mt,l,1)  This will change the mangle to do a
mangle in one case, or do a mangle/maul in the other case as
long as you don't hold down a modifier key (alt, shift, ctrl).
Which might be nice for finer grained control.  Next, thanks to
reader Pockie I figured out how to make this a one-button
toggle. Though it's a bit involved. Here are