Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read Value in SysListView32
#14
Function LvGetAll2
Code:
Copy      Help
;/
function! hlv ARRAY(str)&a

int hd=SendMessage(hlv LVM_GETHEADER 0 0)
int nc=SendMessage(hd HDM_GETITEMCOUNT 0 0)
if(!nc) ret
int nr=SendMessage(hlv LVM_GETITEMCOUNT 0 0)
int r c

a.create(nc nr+1)
for r 0 nr
,for c 0 nc
,,GetListViewItemText hlv r a[c r+1] c

Acc ah=acc("" "LIST" hd)
for(ah.elem 1 nc+1) a[ah.elem-1 0]=ah.Name

ret 1

example
Macro Macro1401
Code:
Copy      Help
out
ARRAY(str) a
int w1=child(1001 "List4" "SysListView32" win("Winamp" "BaseWindow_RootWnd"))
int i j
LvGetAll2 w1 a
for i 0 a.len
,out "'%s'  '%s'  '%s'" a[0 i] a[1 i] a[2 i]


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)