Forum Discussion
The issue could be that there is more than one SysListView32 control. It could be on the same Form or maybe in memory and not visible. This could explain why you are seeing inconsistent results and why looping an array of list view controls seems to work.
A couple of things you could try.
1. Narrow you search by specifying parameters that are unique to the control. For example, make sure it is visible. Or if it has a unique index you could specify that.
Listview = Sys.Process("<ProcessName>").FindChild(new Array("WndClass","Visible", "Index") , new Array("SysListView32", true, 1), 50)
2. Get a parent object closer to the desired SystemListView32 object.
Parent = Sys.Process("<ProcessName>").FindChild(new Array("WndClass","Visible") , new Array("#32770", true), 50)
ListView = Parent.FindChild(new Array("WndClass","Visible", "Index") , new Array("SysListView32", true, 1), 50)
I hope this helps.
Thanks Emma, thanks Chris!
Hi naveenchandravp! Looks like there's suggestions you could try to solve your issue! How's your progress?