#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 355, 240, -1, -1)
$Button1 = GUICtrlCreateButton("Button1", 64, 64, 211, 89)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$A = WinGetHandle("[ACTIVE]") ; handl окна Form1
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
;MsgBox(3, "", $A) ; 1 пример
MsgBox ( 3, "title" , "text" [, timeout = 0 [, $A ]] ) ; 2 пример
EndSwitch
WEnd