03-14-2007, 04:47 PM
Acc variable consists of two variabes.
a is of type IAccessible. When you assign 0, the associated memory is freed.
elem is of type int and therefore does not need to be cleared, although you can also a.elem=0.
acc finds first control of type SysListView32 and then searches for the accessible object in it. If these controls have different ids, you can specify id in class string, eg "id=1045 "SysListView32". Or you can at first find the control using some other function and use its handle instead of window:
int hlv=child(... win("Application Name" "" "" 0x1)) ;;or id(...)
p=acc("" "LISTITEM" hlv "SysListView32" winName 0x1414)
a is of type IAccessible. When you assign 0, the associated memory is freed.
elem is of type int and therefore does not need to be cleared, although you can also a.elem=0.
acc finds first control of type SysListView32 and then searches for the accessible object in it. If these controls have different ids, you can specify id in class string, eg "id=1045 "SysListView32". Or you can at first find the control using some other function and use its handle instead of window:
int hlv=child(... win("Application Name" "" "" 0x1)) ;;or id(...)
p=acc("" "LISTITEM" hlv "SysListView32" winName 0x1414)
