- Impact
- 2
OK i've started creating a script (talked about it once here)
but i now want to send some information to the telnet
heres what my program looks like
i'm able to connect to the DAC - domain availability checker
and when i click the send data button, i want to send the information in the box where itsays text2 to the top box
heres the code i have used.
but i now want to send some information to the telnet
heres what my program looks like
i'm able to connect to the DAC - domain availability checker
and when i click the send data button, i want to send the information in the box where itsays text2 to the top box
heres the code i have used.
Private Sub Form_Load()
telnet.RemoteHost = "dac.nic.uk"
telnet.RemotePort = 2043
End Sub
Private Sub cmdConnect_Click()
telnet.Connect
cmdConnect.Enabled = False
End Sub
Private Sub telnet_DataArrival(ByVal bytesTotal As Long)
Dim strData As String
telnet.GetData strData
txtOutput.Text = txtOutput.Text & strData
End Sub
Private Sub cmdSendData_Click()
If telnet.State = sckConnected Then
telnet.SendData txtSend.Text
End If
End Sub
Private Sub cmdEnd_Click()
telnet.Close
End
End Sub







