Screen resolution / floating window position

Sapo's icon

Hi !

I have a floating windows position set for a particular screen resolution, and I want to keep that relative position when the screen resolution change...
I made a manual solution, with menu and proportional values, but I'm trying to figure out if there is an automatic way to do that ?! Is it possible to get the Live window size or screen resolution ?

Thanks !

Pedro Santos's icon

jit.displays lets you query the screen resolutionand even change .

Roman Thilenius's icon

or [screensize]. and at least one of them will report automatically after the system settings changed.

Sapo's icon

Nice thanks !!
And is it possible to get the Live windows dimensions ?
I would like to make a floating window that follow the Live window

Pedro Santos's icon

I don't think so. Check the LOM (Live Object Model) documentation and search for terms like "resolution" or "window".

Sapo's icon

Hi ! I'm digging up this topic because I got a question related to my floating window.
If I got 2 monitors or more, can I select the screen I want my floating window on ?

- I got a "notitle" floating window,
- I can move it in my main monitor by entering coordinates (but I can't move it to my external monitor),
- I would like to keep the actual coordinates of my floating window but move it from my main monitor to my external monitor by selecting the "active screen".

Is there a message, I didn't find, to send to [thispatcher] ?

Roman Thilenius's icon


there is only one virtual screen space for window positions, and position and size messages to thispatcher work completely independent from the real screenspace; you can not only move a window across monitors, you can also position windows outside the space of the monitors.

unless i am overlooking possible trouble with OSX 10.15 or later - or with live - you should be able to simply build a "monitor selection" by using the position messages.
to "switch" the monitor, just move the window to the left for the 1* the horizontal screensize.

11OLSEN's icon

Have you checked [jit.displays]? It can give you the coords for every connected screen.