Forum Discussion

stevol's avatar
stevol
Occasional Contributor
13 years ago

Identify object by more properties

Hi,

i am not able to find the right syntax to recognize an object specifying more than one properties...

in particular, I am using FindAllChildren method, for example:


popup=tool.findallchildren("WndClass","#32770","ChildCount","4")





Which is the syntax? I tried:

findallchildren("WndClass","#32770","ChildCount","4")

findallchildren("WndClass","ChildCount","#32770","4")

...

I want to identify an array of objects by WndClass AND ChildCount properties, but I have success only using one property, not both.

Any suggestion?



Thx and bye,

ste



2 Replies

  • stevol's avatar
    stevol
    Occasional Contributor
    thanks, now it's ok!

    Right syntax is:

    propArray=Array("WndClass","ChildCount")

    valuesArray=Array("#32770","4")

    popup=tool.findallchildren(propArray,valuesArray)



    while without previous array definition doesn't function (in my version 6.53) :

    popup=tool.findallchildren(["WndClass","ChildCount"],["#32770","4"])



    Regards,

    ste