//--- OBJECT WRITE BEGIN ---
new GuiControl(RebindGUI) {
profile = "GuiDefaultProfile";
horizSizing = "center";
vertSizing = "center";
position = "0 0";
extent = "640 480";
minExtent = "8 2";
enabled = "1";
visible = "1";
clipToParent = "1";
new GuiWindowCtrl() {
profile = "BlockWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "208 161";
extent = "226 157";
minExtent = "8 2";
enabled = "1";
visible = "1";
clipToParent = "1";
text = "Could Not Bind";
maxLength = "255";
resizeWidth = "1";
resizeHeight = "1";
canMove = "0";
canClose = "0";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
new GuiMLTextCtrl() {
profile = "GuiMLTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "10 46";
extent = "206 42";
minExtent = "8 2";
enabled = "1";
visible = "1";
clipToParent = "1";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
text = "The auto-clicker could not bind to F11. If you want to use the auto-clicker, you need to bind it yourself. Sorry about that!";
maxBitmapHeight = "-1";
selectable = "1";
autoResize = "1";
};
new GuiBitmapButtonCtrl() {
profile = "BlockButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "66 115";
extent = "91 38";
minExtent = "8 2";
enabled = "1";
visible = "1";
clipToParent = "1";
command = "canvas.popdialog(RebindGUI);";
text = "OK";
groupNum = "-1";
buttonType = "PushButton";
bitmap = "base/client/ui/button2";
lockAspectRatio = "0";
alignLeft = "0";
alignTop = "0";
overflowImage = "0";
mKeepCached = "0";
mColor = "255 255 255 255";
};
};
};
//--- OBJECT WRITE END ---
It's just like normal scripts and all it's layering. You want them parented to the window itself, so they go right after it, within another {} layer.