This is my sample Code:
First i get the screen resolution of the primary Monitor
after that the screen resolution of the secoundary Monitor
then i will open a window on monitor 1 and on monitor 2, but it open both windows on the primary monitor.
Any idea?
Import chaos.desktopext Import maxgui.drivers Print desktopcount() For Local i:Int = 0 To DesktopCount () Print "Display "+i+" is at position "+DesktopX(i)+","+DesktopY(i)+","+DesktopWidth(i)+","+Desktopheight(i) Next Local Xp:Int = DesktopX(0) + (DesktopWidth(0)) 'use 0 to enshure primary display Local Yp:Int = DesktopY(0) + (DesktopHeight(0)) 'use 0 to enshure primary display Local Windowp:TGadget = CreateWindow ("hello", Xp, Yp, 100, 100) Local Xs:Int = DesktopX(1) + (DesktopWidth(1)) 'use 0 to enshure primary display Local Ys:Int = DesktopY(1) + (DesktopHeight(1)) 'use 0 to enshure primary display Local Windows:TGadget = CreateWindow ("hello", Xs, Ys, 100, 100) Delay 10000
First i get the screen resolution of the primary Monitor
after that the screen resolution of the secoundary Monitor
then i will open a window on monitor 1 and on monitor 2, but it open both windows on the primary monitor.
Any idea?