Forum Discussion

Dz192711's avatar
Dz192711
Occasional Contributor
7 months ago

Wildcard an index number

Clicking a button on a toolbar

toolbar.ClickItem("myTool|[1]|dial")   # first time

toolbar.ClickItem("myTool|[2]|dial")  # second time

toolbar.ClickItem("myTool|[n]|dial") # nth time

replacing index number is not working with the followings:

"myTool|[*]|dial" or "myTool|*|dial"

"myTool|[[0-9]*]|dial" or "myTool|[0-9]*|dial"

How should I wildcard it? or is it not possible?

Thanks