Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Live Chat Help plz:D

Author
Message
Remlap Neb
22
Years of Service
User Offline
Joined: 18th Sep 2003
Location: United Kingdom
Posted: 21st Sep 2003 02:01
could someone please point me in the right direction because im trying to get this chatroom prg working but im using input commands to enter the message and that has 2 halt the program and wait for it to finish all the time your missing out what the other person is saying cause it doesnt pick it up yet!
i would very much like to do this on my own so no snippets plz but just a pointer on what i should use?
thanx a lot

Ben Palmer(Guitarest, Drummer and Bassist)
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 21st Sep 2003 02:17
I posted a simple chat client into Codebase during the week. Have a look at that and see how I dealt with this problem
Remlap Neb
22
Years of Service
User Offline
Joined: 18th Sep 2003
Location: United Kingdom
Posted: 21st Sep 2003 13:35
thanx for the code but i was hopeing for just a pointer on how to have a live chat instead of using the input command and mabye a build up of scancodes till u press enter so u can recieve messages even when ur typing!
i dont need a full program but thank you very much anywy

Ben Palmer(Guitarest, Drummer and Bassist)
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 21st Sep 2003 13:55
I was actually suggesting you just looked at the input code ... but here it is on it's own



Just repeatedly call the 'InputUserMessage' function. When the user hits the enter key the current string will be returned.
zircher
23
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 22nd Sep 2003 02:35
IanM, I've got a question about your basic chat code. Perhaps I'm missing something. What good is chat code that doesn't talk to anyone? Shouldn't there be some networking code in there?
--
TAZ
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 22nd Sep 2003 02:41
What? You mean this code?

http://developer.thegamecreators.com/?m=codebase_view_code&i=93c4ade916a7e1c616c4faaf3a1b00d7

If you mean the code in the Code Snippet box, then that's just an extract from the program in codebase that I used for inputting text instead of using the input command which freezes the program.
zircher
23
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 22nd Sep 2003 04:56
Ah, I got it. I thought it was more than that. Thanks for clearing that up.
--
TAZ

Login to post a reply

Server time is: 2026-07-26 01:26:17
Your offset time is: 2026-07-26 01:26:17