Sl4yer Posted September 20, 2008 Share Posted September 20, 2008 why doesn't GUIGetMsg return anything?? i don't get it ??my code is the following:msgbox(0, "", WinGetState ("wnd title")) _ArrayDisplay(GUIGetMsg(1))the results are these: Link to comment Share on other sites More sharing options...
Zedna Posted September 20, 2008 Share Posted September 20, 2008 What are you truing to do? $state = WinGetState ("wnd title") msgbox(0, "", $state) Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Sl4yer Posted September 20, 2008 Author Share Posted September 20, 2008 (edited) What are you truing to do? $state = WinGetState ("wnd title") msgbox(0, "", $state) hi Zedna, i'm within a function and i created a new window which i want to closed when clicked on the x button on the right top corner but the window doesn't return the $GUI_EVENT_CLOSE Edited September 20, 2008 by Sl4yer Link to comment Share on other sites More sharing options...
Zedna Posted September 20, 2008 Share Posted September 20, 2008 Your code: ;msgbox(0, "", WinGetState ("Suchergebnis")) ;_ArrayDisplay(GUIGetMsg(1)) While GUIGetMsg(1) <> $GUI_EVENT_CLOSE local $getCurSelection = _GUICtrlListViewGetCurSel($reslistView) If _GUICtrlListViewGetCurSel($reslistView) = 1 Then $curSelectedItemText = _GUICtrlListViewGetItemText($reslistView, _GUICtrlListViewGetSelectedIndices($reslistView), 1) RunWait(@ComSpec & ' /c explorer "' & $curSelectedItemText & '\"', "", @SW_HIDE) _GUICtrlListViewSetItemSelState ($reslistView, _GUICtrlListViewGetSelectedIndices($reslistView), 0, 0) EndIf WEnd Correct code: ;msgbox(0, "", WinGetState ("Suchergebnis")) ;_ArrayDisplay(GUIGetMsg(1)) While 1 $msg2 = GUIGetMsg(1) if $msg2[0] = $GUI_EVENT_CLOSE And $msg2[1] = $resWnd Then GuiDelete($resWnd) ExitLoop End If local $getCurSelection = _GUICtrlListViewGetCurSel($reslistView) If _GUICtrlListViewGetCurSel($reslistView) = 1 Then $curSelectedItemText = _GUICtrlListViewGetItemText($reslistView, _GUICtrlListViewGetSelectedIndices($reslistView), 1) RunWait(@ComSpec & ' /c explorer "' & $curSelectedItemText & '\"', "", @SW_HIDE) _GUICtrlListViewSetItemSelState ($reslistView, _GUICtrlListViewGetSelectedIndices($reslistView), 0, 0) EndIf WEnd Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now