We found and fixed a bug in the ApplicationGetNext() function last week.
We will release this fix in the next version.
But you can do the same with the FormGetFirstChild and FormGetNextChild functions.
If you use the functions with handle = 0, then you can enumerate the top level windows.
Code: click into code to enlarge
form = Ranorex.FormGetFirstChild(0)
while form > 0:
print Ranorex.ControlGetText(form)
form = Ranorex.FormGetNextChild(0, form)
is the same as
Code: click into code to enlarge
form = Ranorex.ApplicationGetFirst()
while form > 0:
print Ranorex.ControlGetText(form)
form = Ranorex.ApplicationGetNext(form)
Jenö
Ranorex Team |