Jump to content

Listview


Recommended Posts

Hi,

I'm trying to retrieve the text of whatever item I click on in my listview. I tried looking at a

few examples and came up with this:

Case $msg = $GUI_EVENT_PRIMARYDOWN
        $pos = GUIGetCursorInfo()
    If ($pos[4] == $nListview) Then; $nListview is my listview
        $msgbox = _GUICtrlListViewGetItemText($nListview, $pos[4], 1); Column 2
        MsgBox(0, "", $msgbox); Show the clicked item in MsgBox
    Else
    EndIf

Thanks in advance.

----------------------------

Solved - I used _GUICtrlListViewGetCurSel() then retrieved the text from there. :D

Edited by FireLordZi
While Alive() {
	 DrinkWine();
}
AutoIt Programmer
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...