Hi, do you need something like following
#include <GUIConstantsEx.au3>
#include <MsgBoxConstants.au3>
Example()
Func Example()
Global $sPreviousSelection="";new variable that holds info about last selection
; Create a GUI with various controls.
Local $hGUI = GUICreate("Example", 300, 200)
; Create a combobox control.
Local $idComboBox = GUICtrlCreateCombo("Item 1", 10, 10, 185, 20)
Local $idButton_Close = GUICtrlCreateButton("Close", 210, 170, 85, 25)
; Add additional items to the combobox.
GUICtrlSetData($idComboBox, "Item 2|Item 3", "Item 2")
; Display the GUI.
GUISetState(@SW_SHOW, $hGUI)
Local $sComboRead = ""
; Loop until the user exits.
$sPreviousSelection=GUICtrlRead($idComboBox);update variable with the currently selected item
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE, $idButton_Close
ExitLoop
Case $idComboBox
$sComboRead = GUICtrlRead($idComboBox)
;MsgBox($MB_SYSTEMMODAL, "", "The combobox is currently displaying: " & $sComboRead, 0, $hGUI)
If $sComboRead<>$sPreviousSelection Then
MsgBox(0,"Combobox","Selection changed")
$sPreviousSelection=$sComboRead
EndIf
EndSwitch
WEnd
; Delete the previous GUI and all controls.
GUIDelete($hGUI)
EndFunc ;==>Example
When you ask for help it would be good to post runnable code.