View Single Post
  #1  
Old 01-13-2010, 07:39 PM
Schetti Schetti is offline
SC2 Player
Schetti's Avatar
Join Date: Nov 2008
Location: Austria
Posts: 269
Schetti is on a distinguished road
Freezing when shown

I've got the following problem:
When I for example do this script
HTML Code:
//#CLIENTSIDE
function onWeaponFired() {
this.on = !this.on;
if (this.on) {
  new GuiWindowCtrl("Test") {
    profile = GuiBlueWindowProfile;
    clientrelative = true;
    clientextent = "320,240";

    canmove = true;
    canresize = true;
    closequery = false;
    destroyonhide = false;
    text = "Window 1";
    x = 666;
    y = 351;

  }
 }elseif ( !this.on) {
Test.destroy();
 }
}
And press D, the window will shop up, yea all ok, BUT I can't hit D again without klicking onto the screen before, else it wont destroy the window, I hope you know what I mean.
What I want to have, is that I can hit D again and again without having to klick onto the screen before.

Im sorry for this circumbendibus.
__________________
“Peace cannot be kept by force. It can only be achieved by understanding.” – Albert Einstein
Reply With Quote