Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
filezilla copy url
#3
shows text of selected listview control items, first column
Macro Macro1874
Code:
Copy      Help
int w=win("FileZilla" "wxWindowClassNR")
int c=child("" "SysListView32" w 0 0 0 3)
Acc a.Find(c "LIST" "" "" 0x1004)
ARRAY(int) asi; int i
LvGetSelectedItems c asi
for i 0 asi.len
,a.elem=asi[i]+1
,str s=a.Name
,out s

LvGetSelectedItems is in Archive.qml. If don't have, here it is:
Function LvGetSelectedItems
Code:
Copy      Help
;/
function! hlv ARRAY(int)&a

;Populates a with indices of selected items of listview control.
;Returns 1 if there are selected items, 0 if not.


a=0
int i=-1
rep
,i=SendMessage(hlv LVM_GETNEXTITEM i LVNI_SELECTED)
,if(i<0) break
,a[]=i

ret a.len!0

Note that other related functions from Archive.qml don't work with controls of other processes.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)