Letters to ASCII

May 26, 2012 at 9:34am

Letters to ASCII

Hey there,
I’m stuck on my project where I want someone to type a message into the textedit and it shows the ASCII numbers of what they have typed.

so far I’ve got the single ASCII of each character coming out of the textedit into an integer or another textedit but I would like it to create a list of the ASCII numbers as the person types in the textedit. Is there a way to append the numbers I have displayed in the integer and display it in another textedit?

Please help!

#57030
May 27, 2012 at 1:15pm
– Pasted Max Patch, click to expand. –

: )

#204361
May 28, 2012 at 2:44am

Hey,
thats close to what I wanted but If for example i type hello into my box each letter I type comes out with an ascii number. My goal is each time i press the key on the keyboard the ascii number comes out and it stores that number in a list format.

for example Hello if typed would come out like this

77 36 66 66 52

So then I can grab those ascii numbers and translate them back into a word.

#204362
May 28, 2012 at 2:50am
#204363
May 28, 2012 at 4:11am

This doesn’t update as you type, but it works.

– Pasted Max Patch, click to expand. –

Here’s the link to [toascii]: http://www.maxobjects.com/?v=objects&id_objet=2973&PHPSESSID=54afd061e69f4ae890b938aa7359baee

#204364
May 28, 2012 at 8:35am

Also have a look at [histo].

: )

#204365
May 28, 2012 at 9:37am

Sorry for the hasty responses. I’m in work!

If you have Max 6, have a look at the [dict] family. I’ve had some success with list-building here. [dict.iter] and [dict.view] can be very helpful visual aids!

#204366
May 29, 2012 at 12:15pm

Thanks for all your help guys, much appreciated!

#204367

You must be logged in to reply to this topic.