"Invisible" Max Window menu item in standalone

Dan Nigrin's icon

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?

alersito's icon

Maybe using the inspector of the standalone object??

3059.Standaloneobject.jpg
jpg
Dan Nigrin's icon

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.

alersito's icon

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.

seejayjames's icon

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 :)

Dan Nigrin's icon

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.

Ben Bracken's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

seejayjames's icon

never mind...got it :)

Dan Nigrin's icon

Of course! Thanks for the alternate solution Ben!

alersito's icon

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

Ben Bracken's icon

@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.

-Ben

alersito's icon

Thankss Ben!

seejayjames's icon

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 :)

alersito's icon

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

+1