Sign in to follow this  
Followers 0
Coolw

Get item selected from guicreatelistview

3 posts in this topic

#1 ·  Posted (edited)

For $c = 0 To $servernum
    If _GUICtrlListView_GetItemSelected($listofservers, $c) Then
        _DoHighlighted()
    EndIf
Next

Func _DoHighlighted()
        MsgBox(0, "Return", "The current item selected is " & $c)
EndFunc

Is there a more effective way of doing this?

_GUICtrlListView_GetItemSelected
only checks one of the the listviewitems, but I was wondering if there was something that checked all at once, something like
_GUICtrlComboBox_GetCurSel
Edited by Coolw

My ProgramsMy WIP'sSteam Server Restarter

Share this post


Link to post
Share on other sites



_GUICtrlListView_GetSelectedIndices() returns all selected items in either an array or string, see helpfile for details :P

Thank you very much. I try to read through all my possibilities before I post here. That is exactly what I needed!


My ProgramsMy WIP'sSteam Server Restarter

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