Jade Posted March 26, 2013 Share Posted March 26, 2013 Will be opened only once. function test () Window2 = guiCreateWindow(20,20,200,200,"Window",false) end bindKey("F2","down",test) Link to comment
golanu21 Posted March 26, 2013 Share Posted March 26, 2013 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
Jade Posted March 26, 2013 Author Share Posted March 26, 2013 (edited) Don't Work ? Edited March 26, 2013 by Guest Link to comment
ZL|LuCaS Posted March 26, 2013 Share Posted March 26, 2013 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
Jade Posted March 26, 2013 Author Share Posted March 26, 2013 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now