I'm not having the same luck. In the old version worked like this:
(($WinPos[0] + $WinPos[2]) > @DesktopWidth _
Or $WinPos[0] < 0 _
Or $WinPos[1] < 0 _
Or ($WinPos[1] + $WinPos[3]) > (@DesktopHeight - (@DesktopHeight * 0.085))) _
And Not BitAND(WinGetState($hWindow), 32) ? _
WinMove($hWindow, Default, (@DesktopWidth/2) - (658/2), (@DesktopHeight/2) - (440/2), 658, 440, 1)
I tried to use the parenthesis but I can not work in the new version writing the code below:
(((($WinPos[0] + $WinPos[2]) > @DesktopWidth _
Or $WinPos[0] < 0 _
Or $WinPos[1] < 0 _
Or ($WinPos[1] + $WinPos[3]) > (@DesktopHeight - (@DesktopHeight * 0.085))) _ ;(@DesktopHeight * 0.085) é a largura do menu iniciar.
And Not BitAND(WinGetState($hWindow), 32)) ? _
WinMove($hWindow, Default, (@DesktopWidth/2) - (658/2), (@DesktopHeight/2) - (440/2), 658, 440, 1) : "")