That actually helps a lot in some ways.

The problem I guess I am having is that once you use a /click the macro stops

thus a macro of

/useaction(1)
/useaction(2)
/useaction(3)

will not work from what I have read, it will continually use action 1 and never advance to action 2 or 3 or further.

The idea with a counting variable that resets is that you could do a 1 line macro like this.

/useaction(variable)

The other advantage to this is you could also use it to call other macro's in a specific sequence or by jusr swapping the main actionbar between 1-4, you could change you cast sequences on the fly while in combat without having to resort to another macro.

Like I said its mostly an idea I had, and before I spent a lot of time on it I wanted to make sure that it could be possible to work it like this. Of course if its not possible to pass variables from 1 macro to another this would be almost impossible (not almost but tougher).