If the hierarchy is changing in some pattern, like a page name being page1000 then page1000a
you can use wildcards to match the pattern instead of the exact page name and then look for your object with FindChild or something similar
here's information about wildcards
here's information about FindChild
Actually I have some window objects under which few buttons are there and i need to click on one of the child buttons of that window. and the problem is suppose when i record obj1 points to combo button but after one day that hierarchy changes its position and next day obj1 is pointing to meals & deals.
This is the problem that index changes in hierarchy even though WndCaption and Other properties stay intact.