Results 1 to 2 of 2

Thread: winsock chat program, easy question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2002
    Location
    Disney Land
    Posts
    190

    winsock chat program, easy question

    im working on a simple chat proggie, and i would be the admin, i want to have an tool that will allow me to send msgs in msgboxes to users, with a command like "/say do you like this msgbox?" but how would i split those 2 things and make the program know to make a msgbox for the msg after /say.

  2. #2
    Addicted Member
    Join Date
    Aug 2003
    Location
    USA
    Posts
    145
    Code:
    Public Sub DisplayStuff()
    Msg = "/say blah blah"
    MsgBoxMsg = Mid(Msg, 6, len(Msg))
    MsgBox Msg
    End Sub


    That would only display the message you provided after /say.

    /say blah blah

    would display

    blah blah

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width