Jump to content
Sign in to follow this  
FireLordZi

Listview

Recommended Posts

FireLordZi

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

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.