try this
Function Function45
Function Function45
int w
run "$system$\notepad.exe" "" "" "" 0x1800 win("" "Notepad") w
int x y cx cy
GetWinXY w x y cx cy;; gets window size and position
out F"{x},{y}, {cx},{cy}";; show size and position in qm output
if(!(x=960 and y=0 and cx=960 and cy=1040));;change these values to your wanted window size and position
,out "need to move"
,mov+ 0.5 0 0.5 1.0 w 4
,act w
else;;not needed just for example
,out "no need to move"