why does nothing happen when the X(close button) on the right-top corner of the window $resWnd is clicked??? pls help cause i spent hours to figure it out
$resWnd = GUICreate ("Suchergebnis", 400, $resWndSize, -1 , -1)
$reslistView = GuiCtrlCreateListView("Dateiname |Pfad ", -1, -1, 350, 60)
For $i = 1 to $aArray[0]
$checkArrayCont = StringRegExp($aArray[$i], $dateisuche & "\\", 1, 0)
If $checkArrayCont = 1 Then
$pathStartPos = StringInStr ($aArray[$i], $dateisuche & "\", 0, -1)
$pathEndPos = StringInStr ($aArray[$i], "\", 0, -1)
$countPathChars = $pathEndPos - $pathStartPos
Dim $extractPath = StringMid ($aArray[$i], $pathStartPos, $countPathChars)
$ListViewItemcontrolID = GuiCtrlCreateListViewItem($aArray[$i] & "|" & $extractPath, $reslistView)
EndIf
Next
GUISetState(@SW_SHOW, $resWnd)
GUISwitch($resWnd)
While 1
$msg2 = GUIGetMsg(1)
If $msg2[0] = $GUI_EVENT_CLOSE AND $msg2[1] = $resWnd Then
GuiDelete($resWnd)
ExitLoop
EndIf
local $getCurSelection = _GUICtrlListViewGetCurSel($reslistView)
If _GUICtrlListViewGetCurSel($reslistView) = 1 Then
$curSelectedItemText = _GUICtrlListViewGetItemText($reslistView, _GUICtrlListViewGetSelectedIndices($reslistView), 1)
If ($curSelectedItemText <> "") Then
RunWait(@ComSpec & ' /c explorer "' & $curSelectedItemText & '\"', "", @SW_HIDE)
EndIf
_GUICtrlListViewSetItemSelState ($reslistView, _GUICtrlListViewGetSelectedIndices($reslistView), 0, 0)
EndIf
WEnd