Standalones, dual monitors and last window position

Dan Nigrin's icon

Is there a way for a standalone built with Max 8 to remember which of two attached monitors it was last on when quit, and then start up on that same monitor the next time it is launched?

I'm a dual monitor noob when it comes to Max, so please be gentle if this is obvious...

Thanks!

Source Audio's icon

I guess You init the size and position of the main patcher
before building the standalone,
and then want to move it to last changed position in runtime.
One could store the last position and try to loadbang it...
Have a look into screensize object for monitor detection,
and window messages to thispatcher, getsize, setsize etc

Dan Nigrin's icon

Thanks @Source Audio - yes, I realized just before bed last night, that I had set "Define Fixed Initial Window Location", and that perhaps I should rebuild the standalone without that behavior and see what happens. If no change, then those are good suggestions to look at, thank you!