Jump to content
Sign in to follow this  
UrS

Problems with ListView

Recommended Posts

UrS

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

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

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
maqleod

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.