You might also want to look at QA-type tools. They have a lot of macro facilities, in order that they can run tests against applications. Some are quite pricey, though.
_________________________
-- roger