The Daily Click ::. Forums ::. Klik Coding Help ::. Chat application for the wordy - man strings why you gotta be like that?
 

Post Reply  Post Oekaki 
 

Posted By Message

Tauman



Registered
  15/09/2004
Points
  129
31st December, 2011 at 11:32:54 -

I'd like to create a chat program in which I can send and recieve large chunks of text all at once. Like, larger than mooclick's send-a-string stuff allows. What would be the best way to go about doing this thing?

 
For great justice, and indeed pie.

nivram



Registered
  20/07/2006
Points
  171
31st December, 2011 at 19:17:46 -

Use LaceWing. There is an example by LB on the Clickteam forums.

Marv

 
455 MMF2 & CTF 2.5 examples and games

http://www.castles-of-britain.com/mmf2examples.htm

Fordom

Nordanrikets konung

Registered
  12/02/2009
Points
  190

VIP Member
1st January, 2012 at 21:43:24 -

Use ftp.

 
This forum is full of trolls and disinfo agents.

The_Antisony

At least I'm not Circy

Registered
  01/07/2002
Points
  1331

VIP MemberStarSnow
22nd January, 2012 at 08:03:19 -

If there's a limit to MooClick's "send-a-string" limit, then why not just break your string into pieces and send them through? I would imagine the limit is 255 characters, so throw three or four edit boxes to the side of the frame and use your Len, Right$, and Left$ to figure it out.

The first 255 are easy.
Left$(Text$("text box")), 255)
^^Send that sucker through MooClick.

The next chunk is a little tougher.
Right$(Text$("text box"),(Len(Text$("text box"))-255)
^^Dump the result back into your text box.
Left$(Text$("text box")), 255) through mooclick.

If you set a counter to Len(Text$("text box")) / 255, +1 to a second counter every time you pull out and push a chunk of text until both counters match, then it's EOF (end of file). Or, you know... I could be in the middle of a highly complex brainfart, in which case please ignore everything I've said.

 
ChrisD> Employer: Say, wanna see a magic trick?
ChrisD> Employee: Uhh… sure, boss.
ChrisD> Employer: Your job! It just disappeared! Pack your things and leave! Pretty good trick, huh?

Tauman



Registered
  15/09/2004
Points
  129
27th January, 2012 at 02:52:50 -

I thought about doing something like your suggestion, The_Antisony. Buuuuut I'm not sure how to find out what the character limit is, exactly.

 
For great justice, and indeed pie.
   

Post Reply



 



Advertisement

Worth A Click