Scripts Thread, AutoIT Form Layout Help in Coding and Web Development; Hi to all
I have i bit of i question.
If i use the Koda from autoIt i cREATE my ...
-
26th April 2010, 01:11 PM #1
- Rep Power
- 0
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
-
-
IDG Tech News
-
21st July 2010, 10:53 PM #2 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
-
SHARE: 
Similar Threads
-
By acrobson in forum Coding
Replies: 2
Last Post: 27th January 2010, 07:04 PM
-
By RabbieBurns in forum Scripts
Replies: 8
Last Post: 16th June 2008, 03:47 PM
-
By K.C.Leblanc in forum Scripts
Replies: 7
Last Post: 28th November 2007, 03:27 PM
-
By randle in forum Windows
Replies: 14
Last Post: 11th July 2007, 09:26 AM
-
Replies: 3
Last Post: 3rd July 2007, 01:29 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules