Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loop through Accessible Item List?
#1
Photo 
I used the Find Accessible object window to select a part of a program. In the window that opens after my selection, I see all the members of the dropdown listed (ASSET, ASSET_Selected, CHAPTER, CHAPTER_Find, etc.). How could I create a loop to output a text list similar to what I see in that window? Thanks


Attached Files Image(s)
   
#2
once you have the captured acc object 
insert this after that code
Code:
Copy      Help
ARRAY(Acc) c; int i
a.GetChildObjects(c -1 "LISTITEM" "" "" 16)
for i 0 c.len
,out c[i].Name

example full code below
This is just a basic example of a form that has a combobox.
It wont work with the window your using but is included to show full example code
Code:
Copy      Help
int w=win("Form" "#32770")
Acc a.Find(w "COMBOBOX" "" "" 0x14 3)
ARRAY(Acc) c; int i
a.GetChildObjects(c -1 "LISTITEM" "" "" 16)
for i 0 c.len
,out c[i].Name
#3
Kevin, this is great thanks for the help. It worked like a charm. Smile

I remember watching some of the videos by R Ramcharan, where looping through list items were covered. I was not able to find which video covered it. Besides the great help that Kevin gave me I would like to understand this better. If anybody knows where this is covered in those videos please let me know. Thanks
#4
@pctechtv

Maybe one of these?
(8)   https://www.youtube.com/watch?v=MZCTM6Wjonc  ---> Get HTML (acc obj), timestamp: 08:24
(12)   https://www.youtube.com/watch?v=ZyuiEf9FGlM  --->  for-loops, at the beginning of the video
(25)   https://www.youtube.com/watch?v=HM3WkEYG2Bo  --->   Accessible object actions nodes..., timestamp: 06:39
#5
Quote:Maybe one of these?
Yes, they are all super helpful. Thanks so much!


Forum Jump:


Users browsing this thread: 6 Guest(s)