Код:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Ключ", 264, 176, 192, 124)
$Input1 = GUICtrlCreateInput("Input1", 24, 64, 225, 21)
GUICtrlCreateLabel("", 40, 16, 4, 4)
$Label1 = GUICtrlCreateLabel("Введите ключ продукта", 24, 16, 147, 17)
$Button1 = GUICtrlCreateButton("ОК", 88, 112, 81, 41)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$a = GUICtrlRead ($Input1)
If $a = 'Y3' Then
MsgBox(0, 'Успех!', 'Ключ правильный!')
WinClose('Ключ')
$Form2 = GUICreate('Главное меню', 264, 176, 192, 124)
Else
MsgBox(48, 'Ошибка!', 'Ключ не правильный')
Exit
EndIf
EndSwitch
WEnd
Не создается форма! ($Form2) Что делать? Что не так в коде?