According to the documentation for WindowInfo:
InfoType 10 to 13 are where the auto positioning last placed the
window (the last time the main screen was refreshed).
Since the auto positioning is calculated each time the screen is
redrawn it cannot be known the moment after you do the WindowCreate. The
screen will not be redrawn in the middle of running a script (unless you
call Repaint). Plus, you haven’t “shown” the window yet with WindowShow,
so even if the screen refreshed the position would not be
calculated.
For the code to work the way you are trying to use it, you have to
both show the window, and also cause it to be displayed, with the
Repaint function. So:
WindowShow (win, true) -- show it
Repaint ()
print(WindowInfo(win, 10), WindowInfo(win, 11))
That will display the correct coordinates.