Forum Discussion

jeremyt's avatar
jeremyt
Contributor
12 years ago

Faster way to name map object with similar attributes?

I'm name mapping several objects that are in a dropdown dialog. All these objects are in the same location and use the same name mapping critiria, the only difference is the actual name I give them and the value of the InnerText property I use to identify them. Ideally I could just copy the object, paste it and then edit the name and InnerText property value but I can't see a way of doing that. Right now I use the spy tool to select one individual object, map it manually, make InnerText a required property and then give it a unique name. While this works just fine, it's tedious and slow. Is there a way to do this faster?







  • Instead of mapping every individual object in the dropdown you can just use the "ClickItem" method and pass the item you wish to select. E.g (using C++ script):



    var Dropdown = Mapped name of the dropdown 

    Dropdown["ClickItem"]("Dropdown item 1");