Jump to content

Problems with ListView


UrS
 Share

Recommended Posts

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

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 by UrS
Link to comment
Share on other sites

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 functions

As 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 by maqleod
[u]You can download my projects at:[/u] Pulsar Software
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...