UrS 0 Posted September 7, 2010 Hello, can someone explain me why some program crushes after I attempt to use 'FindItem' or 'GetText' command in my script,and works perfectly with 'GetItemCount'\other commands. Thx in assistance. Share this post Link to post Share on other sites
maqleod 1 Posted September 7, 2010 Hello, can someone explain me why some program crushes after I attempt to use 'FindItem' or 'GetText' command in my script,and works perfectly with 'GetItemCount'\other commands. Thx in assistance.Please post script so that we can see what is going on, otherwise we have no insight into what could possibly be going wrong. [u]You can download my projects at:[/u] Pulsar Software Share this post Link to post Share on other sites
UrS 0 Posted September 7, 2010 (edited) Func UserInRoom( $Username ) Local $Index = ControlListView( "Garena", "", "[CLASS:GG_LISTVIEW; INSTANCE:2]", "FindItem", $Username, 2) If $Index <> -1 Then return True Else return False EndIf EndFunc Just after ControlListView function is called, Garena crushes Btw would be nice, if there are other ways of accessing the ListView in the window. Edited September 7, 2010 by UrS Share this post Link to post Share on other sites
maqleod 1 Posted September 7, 2010 (edited) Btw would be nice, if there are other ways of accessing the ListView in the window.Look at GuiListView Management in the help file, there is a whole UDF with like 50 listview functionsAs for the crash, what is the error message that you get when it crashes? (although, based on what I see, the above UDF will solve your issue, with maybe _GUICtrlListView_GetItem() or _GUICtrlListView_FindItem() instead) Edited September 7, 2010 by maqleod [u]You can download my projects at:[/u] Pulsar Software Share this post Link to post Share on other sites