Settings

WinPosStr:S:0,1,<X_Beg>,<Y_Beg>,<X_End>,<Y_End>

Windows 8 borders

Border_T_Width08+02 = 16

Border_T_Height08+31 = 39

Position

X_Beg = S_Width/2-(W_Width+Border_T_Width)/2
Y_Beg = S_Height/2-(W_Width+Border_T_Height)/2

Width example

S_Width 1920, W_Width 1024:

1920/2-(1024+16)/2

X_Beg 440.

440+1024+16

X_End 1480.

Height example

S_Height 1080, W_Height 768:

1080/2-(768+39)/2

Y_Beg 137.

137+768+39

Y_End 944.

Updated: 2026 Aug 19