Sending the delete key via UDP to a comment Box

Luzius Bauer's icon

Hi there,
I made a little patch for a school class, where multiple participants can send text(actually it's single letters) via udp to a comment box. We used the ASCII values to trigger samples or synths and we thought it would be nice to see the actual text which we are writing. The audio part was running on the individual laptops, and the text part was using one selected laptop. I managed it, that the single letters were being send to individual comment boxes, but i can' send the [delete] key. So i can add letters, spaces and returns after each other but i can't delete them. I'm not sure what the problem is, or if this is even possible in this way. Help is very much apreciated. Check the Patch! My description might be a little bit confusing. :)
Thx Luzi

sending_keys_udp.maxpat
Max Patch


Source Audio's icon

ascii 127 = delete key

Max Patch
Copy patch and select New From Clipboard in Max.

Luzius Bauer's icon

Hi there,
Thx for your reply, but that wasn't what i was searching for. :) I know that the ACII for the delete key is 127 as you suggestet in your reply. But if the set message is triggered, the whole comment box is deleted and not just the last character I wrote. (As in a normal Text Programm).

Floating Point's icon

you need a buffer-- this is one (clumsy) way to do it-- I'm sure there's others that are simpler:

Max Patch
Copy patch and select New From Clipboard in Max.

Source Audio's icon

Comment is not so simply rewriteable thing.
You can't just take last char or anything specific away.
Only prepend, append or set.
You need something else for that.
But as it is not clear at all who sends what,
and what gets displayed and triggered where, I can't really help You.

Anyway, why would You expect that using append message
to comment box would make it possible to remove something ?
Append allways adds something.

benj3737's icon

I use mxi autobot
https://sites.google.com/site/theoldmanthesea/download/

Luzius Bauer's icon

Hey there,
Thx for your answers. The one with teh Buffer works! I had a similar idea in the mean time, but as i was working with a coll list, and not the zl objects, it was much too complicated :)