FireLordZi Posted January 15, 2008 Share Posted January 15, 2008 (edited) 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. Edited January 15, 2008 by FireLordZi While Alive() { DrinkWine(); }AutoIt Programmer Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now