+ Post New Thread
Results 1 to 2 of 2
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 ...
  1. #1

    Join Date
    Apr 2010
    Location
    kl
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    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

  2. #2
    superfletch's Avatar
    Join Date
    Nov 2007
    Location
    South
    Posts
    434
    Thank Post
    145
    Thanked 77 Times in 61 Posts
    Rep Power
    31
    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:
+ Post New Thread

Similar Threads

  1. VBA Code to copy all form updates to one form
    By acrobson in forum Coding
    Replies: 2
    Last Post: 27th January 2010, 07:04 PM
  2. autoit help please
    By RabbieBurns in forum Scripts
    Replies: 8
    Last Post: 16th June 2008, 03:47 PM
  3. AutoIT help.
    By K.C.Leblanc in forum Scripts
    Replies: 7
    Last Post: 28th November 2007, 03:27 PM
  4. AutoIT help
    By randle in forum Windows
    Replies: 14
    Last Post: 11th July 2007, 09:26 AM
  5. AutoIT
    By Gatt in forum Scripts
    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
  •