-
AutoIT Form Layout Help
Hi to all
I have i bit of i question.
If i use the Koda from autoIt i cREATE my own GUI example
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
Global $Form1 = GUICreate("Form1", 288, 106, 192, 124)
Global $Button1 = GUICtrlCreateButton("Button1", 16, 24, 249, 49)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case = $nMsg
MsgBox(0, "", "Dialog was closed")
EndSwitch
WEnd
I only added the part
Case = $nMsg
MsgBox(0, "", "Dialog was closed")
Where is my problem can somebody please Help
Tanx
-
Not really sure as what you have got looks OK, however when I use "Case" statements in AutoIt, I generally use them under the "Select" context, rather then the "Switch" context.
So try changing
Switch $nMsg
for
Select
Case xxx
Case yyy
Case zzz
EndSelect