View Single Post
  #6  
Old 01-09-2017, 11:41 PM
Kirko Kirko is offline
Registered Guest
Join Date: Dec 2014
Location: Texas
Posts: 61
Kirko is a jewel in the roughKirko is a jewel in the rough
Only took a year.

PHP Code:
function showCrap() {
  new 
GuiWindowCtrl("MyWindow") {
    
useownprofile = true;
    
style = $pref::video::defaultguistyle;
    
isExternal = true;
    
showOnTaskBar = true;
    
text = "My Window";
  }
  
// Had to change in other function, didn't work in this one
  
stuff();
}

function 
stuff() {
  
temp.ctrl = MyWindow.externalwindow; // basically just change this
  
ctrl.width = 300;
  
ctrl.height = 200;
  
ctrl.x = (ctrl.screenWidth - ctrl.width) / 2;
  
ctrl.y = (ctrl.screenHeight - ctrl.height) / 2;
} 
Reply With Quote