is this an addon or just that basic macro commands?
cos there ins't anything attached to your post, if it is just that code then this is an awesome thing!