UrS Posted September 7, 2010 Share 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. Link to comment Share on other sites More sharing options...
maqleod Posted September 7, 2010 Share 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 Link to comment Share on other sites More sharing options...
UrS Posted September 7, 2010 Author Share 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 Link to comment Share on other sites More sharing options...
maqleod Posted September 7, 2010 Share 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 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