Question
Determine screen number of active document
I'm using this code to center a window:
var win = new Window("palette",'MyWindow:', [$.screens[0].right/2 - 253,$.screens[0].bottom/2 - 127, $.screens[0].right/2 + 253, $.screens[0].bottom/2 + 127]);That will work if the active document is on monitor 1 ($.screens[0]), but if it is on monitor 2 or 3, it will show my window on monitor 1.
Is there a way to query what monitor (screen) the active document is using?
Thanks in advance.
