If you create a dynamic GUI, you can use this:
PHP Code:
new GuiWindowCtrl( "Test_" @ player.account @ "_Window" )
{
// blah
}
( @ "Test_" @ player.account @ "_Window" ).width = 200; // for example
You can always use controls. Here's something I use sometimes:
PHP Code:
new GuiWindowCtrl( "blah" )
{
this.isWhateverWindow = true;
}
for ( control : GraalControl.controls )
{
if ( control.isWhateverWindow )
{
echo( "I found a window! It is" SPC control.name @ "." );
}
}