i have the need to read in info from a telnet and/or a DOS session ane key responses accordingly.

i was told that this was possible with vb code. does any one know the proper syntax or the commands that will --

1. allow me to change focus to another window (the telnet session)
2. allow me to place the cursor at a specific spot in that window and read in X amount of characters
3. allow me to place the cursor at another specific spot in that window and enter text

whatever anyone could offer me is better than what i have now...which is nothing

thanks,