thispatcher magic?

Wil's icon

This should be easy

Whenever I open a new Max Patcher it is always perfectly centered in the screen

No matter what size computer screen I have

If I resize and reposition the new patch, and close and open, it opens to the new size and position

-- the same is true for subpatch

//

I know how use thispatcher to resize and reposition a patch

Question: I am wondering if there is a thispatcher message that ALWAYS opens the patch to the center of the computer screen -- instead of using offsetting x and y for each different size subpatch

Question is better in the example:

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

Roman Thilenius's icon

even if there would be a fancy new "center" command, nothing speaks against using your old custom patch which calculates the position itself (like mrs. [110.thissplash] does).

and you need such a patch anyway as soon as you need to modify the position a bit... or want to center a window in a virtual workspace greater or smaller than the actual monitor size...

Wil's icon

Hmmm...

Can't seem to find 110.everysolutionyouneedfordailywierdness abstractions in Package Manager

and this ancient link is broken

Source Audio's icon

you can pass screen size (width - height) or use patcherargs instead of fixed values

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

Wil's icon

As always SA

Exactly

thanks