Jump to content

Help Open Window


Jade

Recommended Posts

function test ()

Window2 = guiCreateWindow(20,20,200,200,"Window",false)

end

bindKey("F2","down",test)

no, the script is this

--gui 
Window2 = guiCreateWindow(20,20,200,200,"Window",false) 
guiSetVisible(Window2, false) 
  
--script 
bindKey("F2", "down", 
function () 
guiSetVisible(Window2, true) 
showCursor(true) 
end) 
  

Link to comment
function test ()

Window2 = guiCreateWindow(20,20,200,200,"Window",false)

end

bindKey("F2","down",test)

no, the script is this

--gui 
Window2 = guiCreateWindow(20,20,200,200,"Window",false) 
guiSetVisible(Window2, false) 
  
--script 
bindKey("F2", "down", 
function () 
guiSetVisible(Window2, true) 
showCursor(true) 
end) 
  

not need a new function

function test () 
if Window2 then return end 
Window2 = guiCreateWindow(20,20,200,200,"Window",false) 
end 
bindKey("F2","down",test) 

Link to comment
function test ()

Window2 = guiCreateWindow(20,20,200,200,"Window",false)

end

bindKey("F2","down",test)

no, the script is this

--gui 
Window2 = guiCreateWindow(20,20,200,200,"Window",false) 
guiSetVisible(Window2, false) 
  
--script 
bindKey("F2", "down", 
function () 
guiSetVisible(Window2, true) 
showCursor(true) 
end) 
  

not need a new function

function test () 
if Window2 then return end 
Window2 = guiCreateWindow(20,20,200,200,"Window",false) 
end 
bindKey("F2","down",test) 

Thank You ZL|Lucas and golanu21

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...