01-15-2011, 05:04 PM
I am having trouble doing default action when item is out of view i have tried quite a few SendMessage functions but cnt seem to get it right this works when item is in view the window is vertical scrollbar could i simply scroll to the acc or make the acc visible in background somehow
Acc a=acc("14" "LISTITEM" win("Dialog" "#32770") "SysListView32" "" 0x1011)
int hwnd=child("14" "SysListView32" win("Dialog" "#32770") 0x1)
int index=60
act win("Dialog" "#32770")
1
def LVM_ENSUREVISIBLE 0x00001013
SendMessage hwnd LVM_ENSUREVISIBLE index 0
a.DoDefaultAction ;; Error (RT) in Function: 0x80020003, Member not found.
Acc a=acc("14" "LISTITEM" win("Dialog" "#32770") "SysListView32" "" 0x1011)
int hwnd=child("14" "SysListView32" win("Dialog" "#32770") 0x1)
int index=60
act win("Dialog" "#32770")
1
def LVM_ENSUREVISIBLE 0x00001013
SendMessage hwnd LVM_ENSUREVISIBLE index 0
a.DoDefaultAction ;; Error (RT) in Function: 0x80020003, Member not found.