Forums > MaxMSP

"Invisible" Max Window menu item in standalone

Dec 09 2011 | 8:48 pm

I would like to allow end users of my standalone to display the Max Window, but *only* using Command-M (Mac) keystroke; I do not want there to be a visible menu item called Max Window. I’m adept at modifying my standalone’s maxinterface.json file, which, if this is even possible, I’m sure will require customization of.

Anyone try this before?

Dec 09 2011 | 9:59 pm

Maybe using the inspector of the standalone object??


  1. Standaloneobject.jpg


Dec 09 2011 | 11:00 pm

Thanks, but I’m very familiar with that setting. What I’m after has to do with the visibility (or rather, lack of visibility) of the menu item that allows one to show the Max Window.

Dec 09 2011 | 11:10 pm

Sorry i understand now your question. is not possible using the maxinterface.json file? A friend of mine show me an application that use this kind of standalone. But i think that they didnt want to share the code.

Can you share a example of json file that you have created to learn more about it?

thanksss. I’ll investigate about it and if i find something i’ll comunicate to you.

Dec 09 2011 | 11:26 pm

You should be able to do it I think, the standalone maxinterface.json file should look like a stripped-down version of the regular one. In the past I managed to add a few custom menu items to the standard file (Hide on Lock and Show on Lock in the right-click menu), it was fun to fiddle around. (Though an interface to customize the file would be really cool…no worries about mis-typing etc.)

So if that worked, there should be a way to take out whatever menu items you want…? will take a look at home :)

Dec 09 2011 | 11:28 pm

Well, the contents of the maxinterface.json file that are relevant follow here:

"message" : "maxwindow",
"label" : "Max Window",
"target" : "max",
"shortcut" : "M"

So it’s easy to change the label to say something else, and that will work just fine. But I want to get rid of the "label" altogether, which so far does not seem to work. You cannot remove the label line completely, or make the label "" – the standalone (at least on a Mac) will still insert an entry in the menu (called "a command") if you do.

Dec 09 2011 | 11:45 pm

Dan, I’d recommend just zapping the entry altogether and adding a custom key command with the key object, using the modifier output:

-- Pasted Max Patch, click to expand. --

Dec 10 2011 | 12:04 am

never mind…got it :)

Dec 10 2011 | 12:36 am

Of course! Thanks for the alternate solution Ben!

Dec 10 2011 | 12:47 am

Ben if you want to close the max window with a message?

Dec 10 2011 | 12:51 am

@alersito, I don’t believe that is easily possible at the moment.

I feel like I worked something up like this in js at one point, I can rummage around and post back if I find it.


Dec 10 2011 | 12:53 am

Thankss Ben!

Dec 10 2011 | 2:18 am

Just out of curiosity, why might opening the Max window be available as a simple message, but closing it isn’t? Seems like the other windows (coll, text, pattrstorage, buffer) all have open and close (or "wclose") commands built-in. Something different about the Max window?

…this also applies to clearing the Max window contents programmatically…would be nice maybe…if not possible, wondering why :)

Dec 10 2011 | 4:18 pm

"…this also applies to clearing the Max window contents programmatically…would be nice maybe…if not possible, wondering why :)


Viewing 14 posts - 1 through 14 (of 14 total)

Forums > MaxMSP