Sign in to follow this  
Followers 0
UrS

Problems with ListView

4 posts in this topic

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



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

#3 ·  Posted (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 by UrS

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 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

Share this post


Link to post
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
Sign in to follow this  
Followers 0