The click macros are a priority system, assuming you click/spam them at a consistent speed.
And also assuming you tweak them for the correct number of commas based on your spam speed.
You'll need to choose your reset conditions carefully.
If you go with reset=combat, the macros will work flawlessly, but you'll sometimes not place a dot on a new target.
If you go with reset=target, the macro can get stuck if your spell has a recast delay such as Flame Shock for a shaman.
You'll want a spell without any recast delays, as the fall-through spell.




For the tanking macro.
Take a look at the 96969 macros.

They aren't a priority based system.
But, since every spell is instant cast... there's no need for click to overcome your latency.

If you go with three 8/9 second delay spells.
And interweave the two 6 second recast delay spells.
You'll keep the five chosen abilities up.
And recast them just as they expire.