MichaelP
13 years agoContributor
Can't get description text from list items in sysListView32 control
The application I am testing has a sysListView32 control, which I obtain with the following:
p = Sys.Process("NXPowerLite").Popup("Results");
ListView = p.List("Status");
I can click on each line in the list view control and obtain the description and write it to the log e.g:
File1 = Aliases.dlgResults.listStatus.listitem.Description;
Log.Message(File1);
which results in this log message:
File: C:\Automate...\Ezorder01 - Copy (4).xlsx, Original: 1.3 MB, Optimized: 1003 KB, %: 22% 10:16:08 Normal
Rather than clicking on each item individualy, I need to get all the items in the list (the size of which may not be known in advance) and write each items description to the log.
I have tried various examples in the help documentation but can't do it.
Any help would be greatly appreciated.
Thanks!
p = Sys.Process("NXPowerLite").Popup("Results");
ListView = p.List("Status");
I can click on each line in the list view control and obtain the description and write it to the log e.g:
File1 = Aliases.dlgResults.listStatus.listitem.Description;
Log.Message(File1);
which results in this log message:
File: C:\Automate...\Ezorder01 - Copy (4).xlsx, Original: 1.3 MB, Optimized: 1003 KB, %: 22% 10:16:08 Normal
Rather than clicking on each item individualy, I need to get all the items in the list (the size of which may not be known in advance) and write each items description to the log.
I have tried various examples in the help documentation but can't do it.
Any help would be greatly appreciated.
Thanks!