I use something similar to what SOS posted.
Put in a variable that will reset or have some code written so that when you escape you don't end up fading over and over again. That way if you get knocked to 7% or whatever, you will fade once, then wait until your health is above a certain amount or heal up if you can.
Then your macro can just pick back up where it was.