awingnut,
This may sound a little obtuse, but you could use office to do it.
You can use Perl to open an office document, and within the document have an autload function which would use
Application.SendKeys
Or you could use an app like Macro Express though here you would most likely need to know that state of the machine in terms of relevant window positions, and would be a right pain in the *******.
Another place to look would be CPAN for some of the testing modules
I'm assuming you're on a M$ platform - apologies if I'm wrong
Any decent test suite should have the ability you're after, which you could shell - none too elegant
Sorry If I haven't been too much help here, but it might put you on the right track
Ectually search.cpan.org, look for keystrokes, Win32::GuiTest (ernesto Guisado) could be the biscuit you quest or GUITest.xs ( a Pure Perl implementation, brilliant, but I've only ever got one to work ;(
HTH
Paul
It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...