Question: Macro HoT Identification

Hello, I have really enjoyed using the macros that Elfyau and others have posted. I was wondering if there was a way for the macro to identify a spell on a target such as rejuvenation to skip over the line until the HoT is absent?

I am just wondering IF it can be done? And if so, how could we create one together?

Watch Reruns of WoW Lazy Macros Creator (Lutechi) Live @ 11PM EST