#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <WindowsConstants.au3>
$gui = GUICreate("", 361, 150, 192, 124)
$List = GUICtrlCreateList("", 0, 0, 121, 110)
GUICtrlSetData($List, "Строка 1|String 2")
$Menu=GUICtrlCreateContextMenu($List)
$mGetSel=GUICtrlCreateMenuItem("Показать выделенный пункт",$Menu)
GUISetState(@SW_SHOW)
While 1
Switch GUIGetMsg()
Case $mGetSel
Local $sText=GUICtrlRead($List)
If $sText<>"" Then
MsgBox(0,'',$sText)
EndIf
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd