Selecting an object from a list
User andrejacksonsr2002 (firstname.lastname@example.org) posted:
Can someone please tell me how I can select from a list that is
located within a window called "SysListView32". This window may be a
StingRay object or something. But if I can manually select the
objects, there must be a way to have WinRunner select them. Maybe
a "keystroke" command or something?
Just a little background on what I'm working with: This is a windows
application with a list of Clients numbered Client 1, Client 2, etc.
I need to select the first client, print the illustrations, then move
to the next client and so on.
How do I move to the next client on the list?
Re: Selecting an object from a list
User Irlbeck, James (email@example.com) posted:
If it's a StingRay Grid you can always pony up and buy the add-on from the
folks at Mercury. However, you may also be able to select using the
list_get functions. That would probably involve modifying the physical
description of the object in using the Gui map editor. If you can select
"Client 1" from the object (renamed to be unique from SysListView32) then
you've got a shot at doing the captures programatically.
If you want to capture all the objects from the list you will likely need to
define an array and iteratively navigate the list, populating the array. I
recommend using explicit declaration to keep track of clients using a
synonymous structure that parrallels Client="Client 1"; Client="Client
2"; etc. Put it into a For loop and base the cycles on the listlength
(list_get(count)) [or something like that].
Once you've got it all in your array your good to go without dependence on
If all else fails try recording in Analog mode, or setting focus to the
first cell in the grid via analog. Then scroll the list using the "type"
command and again, populate an array with the values from each cell. Kinda
painful but once scripted it should run fairly proficiently.