Hey, @
(you need an account to see links)! What you're describing can be done with a
(you need an account to see links). If you're particularly intrepid, you can code entire routines with some of these programs, however if you're just looking to send a sequence of keys, then you would want to look out for a program that accepts one keystroke, then types an entire string in reply.
Let me know if you're not able to find a decent fit for your problem. I built a hotkey program of my own to help with Flash games once upon a time, and I could potentially retool it if necessary.