Converting plain text into max-message (?)
@mods, admins: if you think this topic would suit better in the javascript section, then feel free to move it there
How can I convert plain text (text surrounded by "..." e.g. the output of the 'itoa'-object) into a max-message.
I make use of the global javascript method 'messnamed(string, string)', which allows to send text to objects with a global name (e.g 'receive')
messnamed("r1", "set 1");
would send the text "set 1" to the receive object named "r1" (see patcher. save attached js-file into the same folder as the patcher)
Max Patch
Copy patch and select New From Clipboard in Max.
The text, however, is send as "plain" text, not as a max-message (see the content of the second msg-box after clicking on the first one).
Sorry, I posted hastily!
'sprintf %s' does the job!