Can I use Spy++ to get the textbox class name? I have the window class name, but I can't find the textbox one. If anyone has made a program that sends text to an Instant Message window, please respond. BTW thanks Jop, that code should work once I get the textbox name.