Hi,
I am writing a plugin which adds Windows onto a given screen.
I am trying to get the dimensions of the screen in cell units (e.g 17 x 8 cells), so I can set the window's size accordingly
Things I tried:
ScreenContents
Root()["ShowData"]["UserProfiles"]["Default"]["ScreenConfigurations"]["Default"]["ScreenContents"]["ScreenContent 1"]
It has these properties:
[Int16 REQUESTEDW] = [<18>]
[Int16 REQUESTEDH] = [<7>]
But these number represent the current content's total size, not the screen size.
(Meaning that if there is a window of size 5x5 starting at (0,0) then we would have:
[Int16 REQUESTEDW] = [<5>]
[Int16 REQUESTEDH] = [<5>]
GraphicsRoot
Looking at GraphicsRoot
Root()["GraphicsRoot"]["PultCollect"]["Pult 1"]["DisplayCollect"]["Display 1"]
It has the MA3 Window size and position, and it has the SCALERATIO,
So I could theoretically calculate from the pixels, how many cells there are.
But this seems an overkill...
Any suggestions?