I too was trying to do something like this in the past. It's possible to do what you want, but you have to go about it in a different way.
In other words, you can't directly navigate the tree like that (with a variable).
I'm not sure exactly what you're trying to do. But the way around is to make a second button, and then set the "tree location" as the OnPress of another button, and then trigger that button. We'll call that button "ButtonTrigger"
Code:
Temp=Parent.Input.LocalText
Parent.ButtonTrigger.OnPress=('Parent.')##(Temp)##('.visible=true')
Parent.ButtonTrigger.press=true
You can also do If statements, but that could get long if you had a lot of windows. Maybe if you wanted to hide some, when showing others. Just for example:
Code:
sString=Parent.Input.LocalText
bShowA=(Parent.WindowA.Name==sString)
bShowB=(Parent.WindowB.Name==sString)
bShowC=(Parent.WindowC.Name==sString)
Parent.WindowA.visible=(bShowA ? true : false)
Parent.WindowB.visible=(bShowB ? true : false)
Parent.WindowC.visible=(bShowC ? true : false)