What Greg's saying is: you've come to us with a solution and you're asking us how to implement it, whereas it's often best to come to us with the problem and ask us how to solve it.
Often, not always!
Truly, SendKeys is about as robust as a paper mache dump truck.
I wouldn't bet any mission critical processes on it without ironclad error checking.