ID:139950
 
Code:
player
verb
chatloop()

var/pos = winget(src,"default","pos")
var/px = copytext(pos,1,findtext(pos,",",1))
var/py = copytext(pos,findtext(pos,",",1)+1)
var/size = winget(src,"default","size")
var/sx = copytext(size,1,findtext(size,"x",1))
var/sy = copytext(size,findtext(size,"x",1)+1)

world << "Window is [sx]x[sy] and located at [px],[py]."
world << "Chat window should be moved to [px],[text2num(py)+(text2num(sy)-200)] and be size [sx]x200"


Problem description:
When window is maximized this does not report the maxamized window, but the unmaximized.

Is this intended or should it be looked at?

In order to get the actual size you have to put a label, or some other control, on the window with 0/100% anchors and then read the size of said control.