Cladhaire,
Yes, since seeing that post in the WoW forums, I've tried hooking UseAction. This basically works, but involves using a tooltip to determine whether the action stored in a button is a macro or a spellcast, and to find the spell of the name. I'm still experimenting to determine whether I can get the spell level. (Hopefully, since this appears in the tooltip for a spell that's been copied to an action bar, it will be available somewhere.)
Interestingly, if you cast a spell directly from the spellbook, it *does* call CastSpell. Weird.
--Q
|