Jump to content

Help with GUI dropdown menu picker script


Recommended Posts

Dear all,

Hope someone will be able to help me.

I'm bit lost, I'm trying to write a script that:

On the left of GUI window will diplay few dropdown menus with room names

When user picks one roon on the left there will be information window displayed on the right.

Also there are 2 buttons next to room number - Open and Close - when room is selected Open button will run telnet script that will open telephone line in that room, Close script will close the line...

I'm stuck on While 1 part as its not responsive... can't close gui and buttons wont work nice also...

Could you point me in correct direction please?

#include 
#include 
#include 
#include 
#include 

#include 

#Region ### START Koda GUI section ### Form=c:\users\xxx\desktop\test\lines.kxf
$Form1_1 = GUICreate("xxx *** Close/Open telephone lines", 801, 601, 269, 117)
$Group1 = GUICtrlCreateGroup("Open Line", 10, 10, 385, 580)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
$Open_Park_Group = GUICtrlCreateGroup("Park Suites", 15, 40, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$ParkPicker = GUICtrlCreateCombo("", 45, 90, 200, 25, BitOR($CBS_DROPDOWNLIST,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "Park Suite 1|Park Suite 2|Park Suite 3|Park Suite 4|Park Suite 5|Park Suite 6|Park Suite 7")
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$Label1 = GUICtrlCreateLabel("Please choose from drop-down menu below", 45, 70, 266, 20)
$OPEN = GUICtrlCreateButton("OPEN", 265, 60, 50, 75)
$CLOSE = GUICtrlCreateButton("CLOSE", 325, 60, 50, 75)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Open_Plaza_Group = GUICtrlCreateGroup("Plaza Suites", 15, 150, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$PlazaPicker = GUICtrlCreateCombo("", 45, 200, 200, 25, BitOR($CBS_DROPDOWNLIST,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "Plaza Suite 1|Plaza Suite 2|Plaza Suite 3|Plaza Suite 4|Plaza Suite 5|Plaza Suite 6|Plaza Suite 7|Plaza Suite 8|Plaza Suite 9|Plaza Suite 10|Plaza Suite 11|Plaza Suite 12|Plaza Suite 13")
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("Please choose from drop-down menu below", 45, 180, 266, 20)
$Button1 = GUICtrlCreateButton("OPEN", 265, 170, 50, 75)
$Button3 = GUICtrlCreateButton("CLOSE", 325, 170, 50, 75)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Open_City_Group = GUICtrlCreateGroup("City Suites", 15, 260, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$CityPicker = GUICtrlCreateCombo("", 45, 310, 200, 25, BitOR($CBS_DROPDOWNLIST,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "City Suite 1|City Suite 2|City Suite 3|City Suite 4|City Suite 5|City Suite 6|City Suite 7|City Suite 8|City Suite 9|City Suite 10|City Suite 11|City Suite 12")
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$Label3 = GUICtrlCreateLabel("Please choose from drop-down menu below", 45, 290, 266, 20)
$Button4 = GUICtrlCreateButton("OPEN", 265, 280, 50, 75)
$Button5 = GUICtrlCreateButton("CLOSE", 325, 280, 50, 75)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Open_Ballroom_Group = GUICtrlCreateGroup("Open_Ballroom_Group", 15, 370, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$BallroomPicker = GUICtrlCreateCombo("", 45, 420, 200, 25, BitOR($CBS_DROPDOWNLIST,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "Ballroom 1|Ballroom 2|Ballroom 3|Ballroom 4")
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$Label4 = GUICtrlCreateLabel("Please choose from drop-down menu below", 45, 400, 266, 20)
$Button6 = GUICtrlCreateButton("OPEN", 265, 390, 50, 75)
$Button7 = GUICtrlCreateButton("CLOSE", 325, 390, 50, 75)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Open_Events_Group = GUICtrlCreateGroup("Events", 15, 480, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$EventsPicker = GUICtrlCreateCombo("", 45, 530, 200, 25, BitOR($CBS_DROPDOWNLIST,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "Event Org Office 1|Event Org Office 2|Event Desk 1|Event Desk 2")
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$Label5 = GUICtrlCreateLabel("Please choose from drop-down menu below", 29, 502, 266, 20)
$Button8 = GUICtrlCreateButton("OPEN", 265, 500, 50, 75)
$Button9 = GUICtrlCreateButton("CLOSE", 325, 500, 50, 75)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("Information on selected extension", 405, 10, 385, 580)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
$Info_Park_Group = GUICtrlCreateGroup("Park Suites", 410, 40, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Label6 = GUICtrlCreateLabel("Selected extension", 440, 60, 118, 20)
$Label11 = GUICtrlCreateLabel("In-Room port number", 440, 80, 129, 20)
$Label12 = GUICtrlCreateLabel("Riser port number", 440, 100, 110, 20)
$Label13 = GUICtrlCreateLabel("External phone number", 440, 120, 141, 20)
$Park_Int_Info = GUICtrlCreateLabel("Park_Int_t", 610, 60, 62, 20)
$Park_In_Info = GUICtrlCreateLabel("Park_In_t", 610, 80, 59, 20)
$Park_Ri_Info = GUICtrlCreateLabel("Park_Ri_t", 610, 100, 62, 20)
$Park_Ext_Info = GUICtrlCreateLabel("Park_Ext_t", 610, 120, 67, 20)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Info_Plaza_Group = GUICtrlCreateGroup("Plaza Suites", 410, 150, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Label7 = GUICtrlCreateLabel("Selected extension", 440, 170, 118, 20)
$Label8 = GUICtrlCreateLabel("In-Room port number", 440, 190, 129, 20)
$Label9 = GUICtrlCreateLabel("Riser port number", 440, 210, 110, 20)
$Label10 = GUICtrlCreateLabel("External phone number", 440, 230, 141, 20)
$Plaza_Int_Inf = GUICtrlCreateLabel("Plaza_Int_t", 610, 170, 68, 20)
$Plaza_In_Info = GUICtrlCreateLabel("Plaza_In_t", 610, 190, 65, 20)
$Plaza_Ri_Info = GUICtrlCreateLabel("Plaza_Ri_t", 610, 210, 68, 20)
$Plaza_Ext_Info = GUICtrlCreateLabel("Plaza_Ext_t", 610, 230, 73, 20)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Info_City_Group = GUICtrlCreateGroup("City Suites", 410, 260, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Label14 = GUICtrlCreateLabel("Selected extension", 440, 280, 118, 20)
$Label15 = GUICtrlCreateLabel("In-Room port number", 440, 300, 129, 20)
$Label16 = GUICtrlCreateLabel("Riser port number", 440, 320, 110, 20)
$Label17 = GUICtrlCreateLabel("External phone number", 440, 340, 141, 20)
$City_Int_Info = GUICtrlCreateLabel("City_Int_t", 610, 280, 56, 20)
$City_In_Info = GUICtrlCreateLabel("City_In_t", 610, 300, 53, 20)
$City_Ri_Info = GUICtrlCreateLabel("City_Ri_t", 610, 320, 56, 20)
$City_Ext_Info = GUICtrlCreateLabel("City_Ext_t", 610, 340, 61, 20)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Info_Ballroom_Group = GUICtrlCreateGroup("Ballroom", 410, 370, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Label18 = GUICtrlCreateLabel("Selected extension", 440, 390, 118, 20)
$Label19 = GUICtrlCreateLabel("In-Room port number", 440, 410, 129, 20)
$Label20 = GUICtrlCreateLabel("Riser port number", 440, 430, 110, 20)
$Label21 = GUICtrlCreateLabel("External phone number", 440, 450, 141, 20)
$Ballroom_Int_Info = GUICtrlCreateLabel("Ballroom_Int_t", 610, 390, 88, 20)
$Ballroom_In_Info = GUICtrlCreateLabel("Ballroom_In_t", 610, 410, 85, 20)
$Ballroom_Ri_Info = GUICtrlCreateLabel("Ballroom_Ri_t", 610, 430, 88, 20)
$Ballroom_Ext_Info = GUICtrlCreateLabel("Ballroom_Ext_t", 610, 450, 93, 20)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Info_Events_Group = GUICtrlCreateGroup("Info_Events_Group", 410, 480, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Label22 = GUICtrlCreateLabel("Selected extension", 440, 500, 118, 20)
$Label23 = GUICtrlCreateLabel("In-Room port number", 440, 520, 129, 20)
$Label24 = GUICtrlCreateLabel("Riser port number", 440, 540, 110, 20)
$Label25 = GUICtrlCreateLabel("External phone number", 440, 560, 141, 20)
$Events_Int_Info = GUICtrlCreateLabel("Events_Int_t", 610, 500, 75, 20)
$Events_In_Info = GUICtrlCreateLabel("Events_In_t", 610, 520, 72, 20)
$Events_Ri_Info = GUICtrlCreateLabel("Events_Ri_t", 610, 540, 75, 20)
$Events_Ext_Info = GUICtrlCreateLabel("Events_Ext_t", 610, 560, 80, 20)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###


While 1
$chosen = GUICtrlRead($ParkPicker)
$nMsg = GUIGetMsg()

Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch


Switch $chosen

Case "Park Suite 1"
$Park_Int_Info = GUICtrlCreateLabel("75 6334", 610, 60, 62, 20)
$Park_In_Info = GUICtrlCreateLabel("15", 610, 80, 59, 20)
$Park_Ri_Info = GUICtrlCreateLabel("Not known", 610, 100, 62, 20)
$Park_Ext_Info = GUICtrlCreateLabel("02xxxx334", 610, 120, 67, 20)
Sleep(50)
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch

Case "Park Suite 2"
$Park_Int_Info = GUICtrlCreateLabel("75 6335", 610, 60, 62, 20)
$Park_In_Info = GUICtrlCreateLabel("19T", 610, 80, 59, 20)
$Park_Ri_Info = GUICtrlCreateLabel("Not known", 610, 100, 62, 20)
$Park_Ext_Info = GUICtrlCreateLabel("02xxxx7335", 610, 120, 67, 20)
Sleep(500)


Case "Park Suite 3"
$Park_Int_Info = GUICtrlCreateLabel("75 6336", 610, 60, 62, 20)
$Park_In_Info = GUICtrlCreateLabel("25", 610, 80, 59, 20)
$Park_Ri_Info = GUICtrlCreateLabel("Not known", 610, 100, 62, 20)
$Park_Ext_Info = GUICtrlCreateLabel("02xxxx336", 610, 120, 67, 20)
Sleep(500)

Case "Park Suite 4"
$Park_Int_Info = GUICtrlCreateLabel("75 6337", 610, 60, 62, 20)
$Park_In_Info = GUICtrlCreateLabel("27T", 610, 80, 59, 20)
$Park_Ri_Info = GUICtrlCreateLabel("Not known", 610, 100, 62, 20)
$Park_Ext_Info = GUICtrlCreateLabel("020xxxx 7337", 610, 120, 67, 20)
Sleep(500)

Case "Park Suite 5"
$Park_Int_Info = GUICtrlCreateLabel("75 6338", 610, 60, 62, 20)
$Park_In_Info = GUICtrlCreateLabel("31", 610, 80, 59, 20)
$Park_Ri_Info = GUICtrlCreateLabel("Not known", 610, 100, 62, 20)
$Park_Ext_Info = GUICtrlCreateLabel("02xxxx338", 610, 120, 67, 20)
Sleep(500)
Case "Park Suite 6"
$Park_Int_Info = GUICtrlCreateLabel("75 6339", 610, 60, 62, 20)
$Park_In_Info = GUICtrlCreateLabel("?", 610, 80, 59, 20)
$Park_Ri_Info = GUICtrlCreateLabel("Not known", 610, 100, 62, 20)
$Park_Ext_Info = GUICtrlCreateLabel("020xx339", 610, 120, 67, 20)
Sleep(500)
Case "Park Suite 7"
$Park_Int_Info = GUICtrlCreateLabel("75 6340", 610, 60, 62, 20)
$Park_In_Info = GUICtrlCreateLabel("?", 610, 80, 59, 20)
$Park_Ri_Info = GUICtrlCreateLabel("Not known", 610, 100, 62, 20)
$Park_Ext_Info = GUICtrlCreateLabel("0207xxx340", 610, 120, 67, 20)
Sleep(500)




Endswitch
WEnd

GUISetState(@SW_SHOW)
Link to comment
Share on other sites

  • Moderators

KamilZajaczkowski,

A lot of unnecessary coding in that script - using loops and arrays makes it much easier - as this revised version shows: ;)

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <ComboConstants.au3>

; Put data into an array
Global $aPark_Info[8][4] = [[7], _
                            ["75 6334", "15", "Not known", "02xxxx334"], _
                            ["75 6335", "19T", "Not known", "02xxxx7335"], _
                            ["75 6336", "25", "Not known", "02xxxx336"], _
                            ["75 6337", "27T", "Not known", "020xxxx 7337"], _
                            ["75 6338", "31", "Not known", "02xxxx338"], _
                            ["75 6339", "?", "Not known", "020xx339"], _
                            ["75 6340", "?", "Not known", "0207xxx340"]]

$hGUI = GUICreate("xxx *** Close/Open telephone lines", 801, 601, 269, 117)
GUICtrlCreateGroup("Open Line", 10, 10, 385, 580)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
GUICtrlCreateGroup("Park Suites", 15, 40, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$cPark_Combo = GUICtrlCreateCombo("", 45, 90, 200, 25, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "Park Suite 1|Park Suite 2|Park Suite 3|Park Suite 4|Park Suite 5|Park Suite 6|Park Suite 7")
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$cPark_Open = GUICtrlCreateButton("OPEN", 265, 60, 50, 75)
$cPark_Close = GUICtrlCreateButton("CLOSE", 325, 60, 50, 75)
GUICtrlCreateGroup("Plaza Suites", 15, 150, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$cPlaza_Combo = GUICtrlCreateCombo("", 45, 200, 200, 25, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "Plaza Suite 1|Plaza Suite 2|Plaza Suite 3|Plaza Suite 4|Plaza Suite 5|Plaza Suite 6|Plaza Suite 7|Plaza Suite 8|Plaza Suite 9|Plaza Suite 10|Plaza Suite 11|Plaza Suite 12|Plaza Suite 13")
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$cPlaza_Open = GUICtrlCreateButton("OPEN", 265, 170, 50, 75)
$cPlaza_Close = GUICtrlCreateButton("CLOSE", 325, 170, 50, 75)
GUICtrlCreateGroup("City Suites", 15, 260, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$cCity_Combo = GUICtrlCreateCombo("", 45, 310, 200, 25, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "City Suite 1|City Suite 2|City Suite 3|City Suite 4|City Suite 5|City Suite 6|City Suite 7|City Suite 8|City Suite 9|City Suite 10|City Suite 11|City Suite 12")
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$cCity_Open = GUICtrlCreateButton("OPEN", 265, 280, 50, 75)
$cCity_Close = GUICtrlCreateButton("CLOSE", 325, 280, 50, 75)
GUICtrlCreateGroup("Open_Ballroom_Group", 15, 370, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$cBall_Combo = GUICtrlCreateCombo("", 45, 420, 200, 25, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "Ballroom 1|Ballroom 2|Ballroom 3|Ballroom 4")
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$cBall_Open = GUICtrlCreateButton("OPEN", 265, 390, 50, 75)
$cBall_Close = GUICtrlCreateButton("CLOSE", 325, 390, 50, 75)
GUICtrlCreateGroup("Events", 15, 480, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$cEvents_Combo = GUICtrlCreateCombo("", 45, 530, 200, 25, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "Event Org Office 1|Event Org Office 2|Event Desk 1|Event Desk 2")
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$cEvents_Open = GUICtrlCreateButton("OPEN", 265, 500, 50, 75)
$cEvents_Close = GUICtrlCreateButton("CLOSE", 325, 500, 50, 75)
; Only need to close groups at the end of a list of groups
GUICtrlCreateGroup("", -99, -99, 1, 1)

; Use loops for multiple instances of the same label
For $i = 0 To 4
    GUICtrlCreateLabel("Please choose from drop-down menu below", 45, 70 + ($i * 110), 210, 20)
Next

GUICtrlCreateGroup("Information on selected extension", 405, 10, 385, 580)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
GUICtrlCreateGroup("Park Suites", 410, 40, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$cPark_Int_Info = GUICtrlCreateLabel("Park_Int_t", 610, 60, 62, 20)
$cPark_In_Info = GUICtrlCreateLabel("Park_In_t", 610, 80, 59, 20)
$cPark_Ri_Info = GUICtrlCreateLabel("Park_Ri_t", 610, 100, 62, 20)
$cPark_Ext_Info = GUICtrlCreateLabel("Park_Ext_t", 610, 120, 67, 20)
GUICtrlCreateGroup("Plaza Suites", 410, 150, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$cPlaza_Int_Inf = GUICtrlCreateLabel("Plaza_Int_t", 610, 170, 68, 20)
$cPlaza_In_Info = GUICtrlCreateLabel("Plaza_In_t", 610, 190, 65, 20)
$cPlaza_Ri_Info = GUICtrlCreateLabel("Plaza_Ri_t", 610, 210, 68, 20)
$cPlaza_Ext_Info = GUICtrlCreateLabel("Plaza_Ext_t", 610, 230, 73, 20)
GUICtrlCreateGroup("City Suites", 410, 260, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$cCity_Int_Info = GUICtrlCreateLabel("City_Int_t", 610, 280, 56, 20)
$cCity_In_Info = GUICtrlCreateLabel("City_In_t", 610, 300, 53, 20)
$cCity_Ri_Info = GUICtrlCreateLabel("City_Ri_t", 610, 320, 56, 20)
$cCity_Ext_Info = GUICtrlCreateLabel("City_Ext_t", 610, 340, 61, 20)
GUICtrlCreateGroup("Ballroom", 410, 370, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$cBall_Int_Info = GUICtrlCreateLabel("Ballroom_Int_t", 610, 390, 88, 20)
$cBall_In_Info = GUICtrlCreateLabel("Ballroom_In_t", 610, 410, 85, 20)
$cBall_Ri_Info = GUICtrlCreateLabel("Ballroom_Ri_t", 610, 430, 88, 20)
$cBall_Ext_Info = GUICtrlCreateLabel("Ballroom_Ext_t", 610, 450, 93, 20)
GUICtrlCreateGroup("Info_Events_Group", 410, 480, 375, 105)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$cEvents_Int_Info = GUICtrlCreateLabel("Events_Int_t", 610, 500, 75, 20)
$cEvents_In_Info = GUICtrlCreateLabel("Events_In_t", 610, 520, 72, 20)
$cEvents_Ri_Info = GUICtrlCreateLabel("Events_Ri_t", 610, 540, 75, 20)
$cEvents_Ext_Info = GUICtrlCreateLabel("Events_Ext_t", 610, 560, 80, 20)
GUICtrlCreateGroup("", -99, -99, 1, 1)

For $i = 0 To 4
    GUICtrlCreateLabel("Selected extension", 440, 60 + (110 * $i), 118, 20)
    GUICtrlCreateLabel("In-Room port number", 440, 80 + ($i * 110), 129, 20)
    GUICtrlCreateLabel("Riser port number", 440, 100 + ($i * 110), 110, 20)
    GUICtrlCreateLabel("External phone number", 440, 120 + ($i * 110), 141, 20)
Next

GUISetState(@SW_SHOW)

While 1

    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            Exit
        Case $cPark_Combo ; Just wait until a combo is actioned before doing anything
            ; As all the option have a numeric value we can use that to identify them in the data array
            $iPark_Index = StringRight(GUICtrlRead($cPark_Combo), 1)
            GUICtrlSetData($cPark_Int_Info, $aPark_Info[$iPark_Index][0])
            GUICtrlSetData($cPark_In_Info, $aPark_Info[$iPark_Index][1])
            GUICtrlSetData($cPark_Ri_Info, $aPark_Info[$iPark_Index][2])
            GUICtrlSetData($cPark_Ext_Info, $aPark_Info[$iPark_Index][3])
        Case $cPlaza_Combo
        Case $cCity_Combo
        Case $cBall_Combo
        Case $cEvents_Combo

        Case $cPark_Open
            MsgBox(0, "Park", "Open")
        Case $cPark_Close
            MsgBox(0, "Park", "Close")

    EndSwitch

WEnd

Please ask if you have any questions on what I have changed and why I have done it. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...