Forums > MaxMSP

Detecting if running as stanalone

September 25, 2007 | 6:51 am

Hi Max

I have two set-ups for the same patch; one when I edit it and one
when it is exported as a standalone. For instance I like to have the
menu bar hidden when it is a standalone but not when I am editing it.
So, until now I have been cutting and connecting wire connections
every time I export as an application.

Is there a way to ask the application if it is running as a
standalone? Using the ‘thispatcher’ object for instance?

(biting his desk and crossing fingers)
~ce

Carl Emil Carlsen
Copenhagen / Kolding
+45 28 93 81 28
http://www.moodplug.com


September 25, 2007 | 7:12 am

On 25 sept. 07, at 08:51, Carl Emil Carlsen wrote:

> Hi Max
>
> I have two set-ups for the same patch; one when I edit it and one
> when it is exported as a standalone. For instance I like to have
> the menu bar hidden when it is a standalone but not when I am
> editing it. So, until now I have been cutting and connecting wire
> connections every time I export as an application.
>
> Is there a way to ask the application if it is running as a
> standalone? Using the ‘thispatcher’ object for instance?

Hi,

How about the max message "getruntime"? On loadbang, trigger a
message box which contains "; max getruntime toto", and the receive
toto will tell you everything;-)

Cheers,
ej


September 25, 2007 | 7:32 am

there is a message to max "getruntime" that will return if max is in
standealone.

Am 25.09.2007 um 08:51 schrieb Carl Emil Carlsen:

> Hi Max
>
> I have two set-ups for the same patch; one when I edit it and one
> when it is exported as a standalone. For instance I like to have
> the menu bar hidden when it is a standalone but not when I am
> editing it. So, until now I have been cutting and connecting wire
> connections every time I export as an application.
>
> Is there a way to ask the application if it is running as a
> standalone? Using the ‘thispatcher’ object for instance?
>
> (biting his desk and crossing fingers)
> ~ce
>
> Carl Emil Carlsen
> Copenhagen / Kolding
> +45 28 93 81 28
> http://www.moodplug.com
>
>
>


September 25, 2007 | 8:33 am

Carl Emil Carlsen schrieb:
> Is there a way to ask the application if it is running as a standalone?
> Using the ‘thispatcher’ object for instance?

If you had my Max Overviews installed you’d have some help files for
messages to Max. This is one of it:
(A Standalone is a runtime version of Max)

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 28 71 50 196617 print;
#P window linecount 4;
#P comment 198 50 223 196617 The word getruntime followed by a symbol
used as the name of a receive object , sends a 1 to the named receive
object if the current version of Max is a runtime version , and a 0 if
not.;
#P window linecount 1;
#P newex 28 50 91 196617 r foo;
#P window linecount 2;
#P message 28 96 156 196617 ; max getruntime foo;
#P connect 1 0 3 0;
#P window clipboard copycount 4;


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


September 25, 2007 | 11:52 am

i just build in a toggle
then i only have one patch

max v2;
#N vpatcher 0 44 1440 896;
#P origin -185 -22;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P hidden newex 46 145 51 196617 closebang;
#P hidden newex 0 145 45 196617 loadbang;
#P user ubutton 178 22 617 197 0 0;
#P hidden toggle 87 204 15 0;
#P hidden message 87 230 68 196617 fullscreen $1;
#N thispatcher;
#Q end;
#P hidden newobj 87 254 59 196617 thispatcher;
#P hidden connect 3 1 2 0;
#P hidden connect 4 0 2 0;
#P hidden connect 5 0 2 0;
#P hidden connect 2 0 1 0;
#P hidden connect 1 0 0 0;
#P pop;


September 25, 2007 | 1:20 pm

Perfect! I can’t ask for more. Thanks for the examples too!

=D
~ce

Carl Emil Carlsen
Copenhagen / Kolding
+45 28 93 81 28
http://www.moodplug.com


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