ok, basically.
I would like to make a hotkey bar simulator like EC, for all spells. What I would like is to be able to make the spell buttons turn red once I click on until the cast is finished.
For that, I need to know the status of my character when he cast a spell.
For example, "Invisibility" we know that the cast is no longer active once the cursor is open, or when casting magic reflection, the buff is activated.