Iterate Desktop Listbox

Hi All - very new to this tool so introducing myself and asking a question if people don’t mind.

I’m trying some desktop automation and find myself with a listbox and want to iterate through it clicking on each entry.

I’m playing around with OCR to see if this would work, am I headed in the right direction with OCR or have I missed something. Problem I see with OCR is if the list is more that the displayed window area and scrollbars need to be clicked to get to all the data.

Any pointers would be much appreciated.

Thanks
Pat

(Should mention that the contents of this listbox are dynamic and will change)

Sometimes it will be easier to use keyboard inputs rather than OCR or xClick to navigate things like listboxes. See if you can perform your task with keyboard functions such as using tab, arrow keys, and enter. If this is possible then you can use the xType command to perform those key strokes.

Thanks for the input - I’ll have a try with keyboard inputs. Sorry if these are fairly basic questions, I’ve very new!

Further playing shows what my problem really is. The listbox contents are dynamic and the workflow is.

  • listbox appears
  • Select first entry
  • listbox disappears
  • (Do some stuff)
  • listbox reappears
  • select next entry
  • listbox disappears
  • (Do some stuff)

So keeping track of where I’m at in the listbox is interesting!

But I’m digging into the docs and trying to work this stuff out myself…

Thanks
Pat