I have a GUI with several ListViews, and am trying to obtain the ItemText from just the "active" one. Looking to group the listviews so only one is active at a time. Below is a reproducer to show the basic GUI framework. Each of the listviews has multiple columns, which I use _GUICtrlListView_GetItemTextArray to get the text of. What I am after is basically similar to grouping radio buttons or checkboxes; when one listview is active the others are not.
#include <GUIConstantsEx.au3>
#incl
JLogan3o13, I missed this when you posted the first time. This is what I do in my GUIListViewEx UDF - look for a single click on a ListView and save the handle in a Global variable:
#include <GUIConstantsEx.au3>
#include <GuiListView.au3>
#include <WindowsConstants.au3>
Global $hCurrListView, $aListView[2]
$hGUI_Main = GUICreate("Test", 500, 350)
GUISetState(@SW_SHOW)
$btnGo = GUICtrlCreateButton("Go", 10, 300, 100, 30)
$sListView = _GUICtrlListView_Create($hGUI_Main, "A