i need a code (it's not very big.. i remeber it was only a few lines, but i lost it somewhere lol), that takes the text in a textbox and puts it into a programs message box (ie mirc or msn messenger) and basically automatically presses enter.

I reember it didn't contain protocol, and in part of it you typed the name of the program as it appears in the taskbar.

Thanks in advanced. If you need more info ass me to messenger cause it's easier lol