Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get the index of a focused list item
#3
Macro Macro2431
Code:
Copy      Help
int w=win("Winamp" "BaseWindow_RootWnd")
int hwl=child("List4" "SysListView32" w 0x0 "id=1001") ;;list 'Refine:'

int i=SendMessage(hwl LVM_GETNEXTITEM -1 LVNI_SELECTED) ;;or LVNI_FOCUSED, or LVNI_SELECTED|LVNI_FOCUSED
out i

But it will not work in Windows 7/8 Explorer, it does not use SysListView32.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)