Creating a Chat Room in Max

hartman.264's icon

Hi,

I'm trying to create a networked "chat room" between three computers that will displayed through a projector. The only problem that I am having is that the textedit object seems to be limited in terms of displaying multiple lines of text. Every time I send a message from one textedit object to the displayed textedit object it erases the previous entry. Does anyone now how to fix this is the attributes?

yas's icon

i dont know exactly what your problem is, but maybe this will help:

[textedit]
|
[route text]
|
[prepend append]
|
[textedit]

hartman.264's icon

Thanks for the reply. I implemented this code and I am now trying create a break after every post. With the code above, the text just gets appended onto the same line. I've tried to create a separator message but this did not cause a break between each post. Please help!

1019.chatroom.maxpat
Max Patch
MIB's icon
Max Patch
Copy patch and select New From Clipboard in Max.

here is another way of doing it. this will need some work!! here I am using scripting to create individual message boxes for each entry. right now there is no convenient way to delete messages. with some elbow-grease and the @varname attribute it is real easy to do.

hartman.264's icon

Thanks for the help, I'll have to parse through this one.....