#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$aa=IniReadSection ( "1234.ini", "section1" )
$ab=IniReadSection ( "1234.ini", "section2" )
$cc=$aa[1][1]&"|"&$ab[1][1]
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 154, 121, 192, 124)
$Combo1 = GUICtrlCreateCombo("", 32, 24, 105, 25)
GUICtrlSetData(-1,$cc)
$Input1 = GUICtrlCreateInput("", 32, 64, 105, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Combo1
For $i= 1 To $aa[0][0]
If $aa[$i][1]=GUICtrlRead ($Combo1) Then GUICtrlSetData($Input1,$aa[$i+1][1])
Next
For $i= 1 To $ab[0][0]
If $ab[$i][1]=GUICtrlRead ($Combo1) Then GUICtrlSetData($Input1,$ab[$i+1][1])
Next
EndSwitch
WEnd
|