10-09-2007, 02:54 AM
Hi Gintaras,
I finally got a chance to work with the examples you gave me. Usually I can reverse engineer to what I need. I am having a little more difficulty this time. Hope you can help but I understand if too involved!
Here is what I am trying to do:
In this particular applications screen, there is a listbox like this:
It has many entry lines of this type:
Each line has a different value. In that value is a record number which I am trying to extract.
Right now I go down that list serially using a "next" navigation statement.
Since the length of the list is variable ~5 to 100, it would be much better if I could have the user select-highlight (using Ctrl-left click or Shift-left click - like normal Windows functionality) the desired entries, and then have only those get acted upon.
Ctrl-Left click and Shift-left click already work to highlight this list in the desired fashion, bu my macro currently just goes from the top to the bottom, using additional (n1, n2, n3, n4)navigation steps.
Is it possible to extract this in a MultiSelect fashion or do I have to go through a dialog like in your examples?
I geuss another way would be for a QM macro to see which have already been multi-selected natively in the App and then use those as the signs to which to navigate and pull the Value from.
Sorry for long explanation. Hope you can help me.
Thanks,
Stuart
I finally got a chance to work with the examples you gave me. Usually I can reverse engineer to what I need. I am having a little more difficulty this time. Hope you can help but I understand if too involved!
Here is what I am trying to do:
In this particular applications screen, there is a listbox like this:
Acc a=acc("" "LIST" win("Sample App" "WindowsForms10.Window.8.app.0.378734a") "WindowsForms10.SysListView32.app.0.378734a" "" 0x1000)
It has many entry lines of this type:
Acc a=acc("" "LISTITEM" win("Sample App" "WindowsForms10.Window.8.app.0.378734a") "WindowsForms10.SysListView32.app.0.378734a" "sample value " 0x1404)
Each line has a different value. In that value is a record number which I am trying to extract.
Right now I go down that list serially using a "next" navigation statement.
Since the length of the list is variable ~5 to 100, it would be much better if I could have the user select-highlight (using Ctrl-left click or Shift-left click - like normal Windows functionality) the desired entries, and then have only those get acted upon.
Ctrl-Left click and Shift-left click already work to highlight this list in the desired fashion, bu my macro currently just goes from the top to the bottom, using additional (n1, n2, n3, n4)navigation steps.
Is it possible to extract this in a MultiSelect fashion or do I have to go through a dialog like in your examples?
I geuss another way would be for a QM macro to see which have already been multi-selected natively in the App and then use those as the signs to which to navigate and pull the Value from.
Sorry for long explanation. Hope you can help me.
Thanks,
Stuart