Object or method to interact with the clipboard (copy/paste)?

Pedro Santos's icon

Hi. Is there any object or method in Max to copy something to the clipboard?
I'd like to make a textbutton to "Copy to Clipboard" or, even better, calculate something (text/numbers) and put it automatically on the clipboard.
I've noticed the "Copy to Clipboard" textbutton in "Options/OpenGL Status".
Is this possible with standard Max or do we have to go to Java or Javascript land?

Any hints? Thanks.

Pedro Santos

Basvlk's icon

+1 is there a feature request place somewhere? I'd like this too :-)

Carl Albrecht's icon

I ve been hunting for a "copy to clipboard" functionality too - with no success so far :(
Noticed that there is exactly this functionality in the "About Max 7" window , unfortunatily this does not seem to be a maxpat?!
could not find anything pointing to that...
there is a java thing doing it - but you need to have java installed, which is unconvenient distributing a standalone :(
javascript is said to have no system comand functionality in max.
Any news on the subject?

taylortronic's icon
metamax's icon

Pedro, the [shell] object does this quite well. It can also create, delete and edit local files and folders.

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

tkzic's icon

Metamax, Thank you for that example patch. Solved a huge problem.
tz

Joe X Med O''s icon

how would this be for Windows?

Joe X Med O''s icon

nvm... figured it out, just send this to [shell]:
ECHO text to copy | CLIP