#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <MsgBoxConstants.au3> Local $hGUI = GUICreate("Случайное перемещение окна",700,300)
GUISetState(@SW_SHOW, $hGUI)
While 1 $msg = GUIGetMsg() if $msg = $GUI_EVENT_CLOSE then ExitLoop endif $x = random(0,@DesktopWidth,1) $y = random(0,@DesktopHeight,1) WinMove($hGUI,"",$x,$y) Sleep(500)
WEnd