winget(src, "windowOrPane.*", "id")
Would respond with: button1, label1, button2, button3, etc.
Though they are readonly, sometimes I need ro run through with a "for" on all buttons and move them around based on simple checks. I present to you an example of such a case:
If I were to close the chat with JohnGames, the bottom three buttons would need to be moved up, however the id of each one is dynamically generated, so without saving to a list on creation, I won't know what the names are.
I apologize if there is already another method I have not found that does this.
That code doesn't do it? The skin reference says:
"You can use a wildcard after a window name in winget() to retrieve info about all the controls in a window (including the window itself). winget(player, "mainwindow.*", "image") will return the image parameter (where available) for mainwindow and any controls that are a part of mainwindow."
...so I would assume using id as the third argument would return a list of control IDs contained by the parent cited.