1 !define LVM_GETITEMCOUNT 0x1004
2 !define LVM_GETITEMTEXT 0x102D
13 FindWindow $0 "#32770" "" $HWNDPARENT
18 SendMessage $0 ${LVM_GETITEMCOUNT} 0 0 $6
19 System::Alloc ${NSIS_MAX_STRLEN}
22 System::Call "*(i, i, i, i, i, i, i, i, i) i \
23 (0, 0, 0, 0, 0, r3, ${NSIS_MAX_STRLEN}) .r1"
24 loop: StrCmp $2 $6 done
25 System::Call "User32::SendMessageA(i, i, i, i) i \
26 ($0, ${LVM_GETITEMTEXT}, $2, r1)"
27 System::Call "*$3(&t${NSIS_MAX_STRLEN} .r4)"
28 FileWrite $5 "$4$\r$\n"
37 MessageBox MB_OK error