Добрый день!
Подскажите в чем я не прав, почему не отрабатывает условие?
Подскажите в чем я не прав, почему не отрабатывает условие?
Код:
#include <StaticConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Include <GuiButton.au3>
#include <EditConstants.au3>
Local $test = GUICreate("test",350,214,-1,-1,-1,-1)
Local $Edit = GUICtrlCreateInput("",90,50,150,20,-1,$WS_EX_CLIENTEDGE)
Local $Button = GUICtrlCreateButton("Нажать",116,100,100,30,-1,-1)
GUISetState(@SW_SHOW,$test)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button
If $Edit = 'www' Then
MsgBox(0,"заголовок", $Edit,0)
EndIf
EndSwitch
WEnd