S1()
usr << "Pressed 1"
if(winget(usr, "Container", "is-visible") == 1)
usr << "Container Is Visible"
if(winget(usr, "Container.S1", "text"))
usr << "Container S1 Has Text "
Problem description:
The problem is that it won't say S1 has text, so I must be doing something wrong. "Container Is Visible" works. I've checked the interface itself and I can't find anything wrong with the label I'm trying to get text from.
Anyone got any ideas? Thanks :D