Sounds like you want to write some kind of autoscripter for a chat program, which are generally illegal. However, you might look at the SendKeys API call if you insist on writing this kind of app. Kind of a strange question to ask on an adult forum but hey, I'm a VB6 coder myself so I can understand...you never know where coders lurk, heh.
