Yeah I used a load of AutoIT scripts years ago to automate logging into our Unix systems (I normally have at least 12 terminal sessions open at one time for my job). Pretty sure I used a lot of SendKey stuff. AutoIT turned out to be a bit friendlier for doing exactly what I wanted(and getting a simple program out to a lot of sites). I think I grabbed the Terminal window handler IDs, switched to them when I wanted to send some key data, and then did SendKey (or whatever it was I used as I'm sure I used SendKey and something else - would check but I can't be bothered getting my Cryptokey from upstairs...).
Works fine apart from you do anything else at the same time as the script and it can be just the right moment between selecting the window with the handler ID and sending the keys. For the life of me couldn't get it to correctly send to a given Terminal's text section, or even read from it. Then again we do use our own in-house written telnet terminal software, and also an SSH program (SNetterm) that seems good at also hiding things from external programs.
Cheers