_WindowChanged

Returns if window has been moved or resized and updates given array

#include "Window, Screen, Mouse and Control.au3"
_WindowChanged( $hGUI, $aFormerPosition [, $bClientArea = False ] )

parameters

$hGUI Window GUI handle
$aFormerPosition Former position and size of given window
$bClientArea True = given former position contains size of client area instead of window

return value

boolean value True = Window has been moved or resized

related

example

If _WindowChanged($GUI,$WindowPosition) Then _Ok("Did you moved or resize the window?")

If _WindowChanged($GUI,$GUIPosition,True) Then _Ok("Did you moved or resize the GUI?")