About winsock control
About winsock control
About winsock control
About winsock control
About winsock control
About winsock control About winsock control About winsock control About winsock control About winsock control About winsock control About winsock control About winsock control
About winsock control About winsock control
About winsock control
Go Back  Xtreme Visual Basic Talk > > > About winsock control


Reply
 
Thread Tools Display Modes
  #1  
Old 09-19-2000, 09:01 PM
jdoman
Guest
 
Posts: n/a
Question About winsock control


Hi basically i have created a winsock control (chat client) that connects to a server i specifie. Now i want this client to automatically respond. To words said to the app.
All the data sent to the client is displayed in a textbox.

So when it receives a message it looks like this if the user that sent the data is JD (to the client)..... it looks like this.

JD tells you: messagehere

so i want the client to notice the username part and do this
tell usernamehere Hello i am sorry i am only a bot and cannot respond.

I know it is something to do with a string but i am not sure how to do it.
in order to send a message to another user in this server you type tell usernamehere messagehere

thanx in advance!!!!!


Reply With Quote
  #2  
Old 09-20-2000, 02:00 AM
jdoman
Guest
 
Posts: n/a
Question Re: About winsock control

Well i have put together this code and it should definately work. BUT when the client trys to connect with this code in winsock1_dataarrival
Dim strtext$
If Mid(strtext$,Instr(Strtext$," "),10) = "tells you:" then
WinSock1.SendData "Tell " & Left(strtext$,Instr(strtext$," ") & "I am just a bot [censored], I'm not here!"

and when i connect to the server it stuffs up and says invalid operation could u tell me what to try? or where to put the code instead of where i have it now.

thanx in advance


Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
About winsock control
About winsock control
About winsock control About winsock control
About winsock control
About winsock control
About winsock control About winsock control About winsock control About winsock control About winsock control About winsock control About winsock control
About winsock control
About winsock control
 
About winsock control
About winsock control
 
-->