yMassai Posted May 17, 2012 Posted May 17, 2012 WindowTest = guiCreateWindow(350,250,450,320,"Exemplo",false) guiWindowSetSizable(WindowTest,false) guiSetVisible(WindowTest,false) function ShowTest ( ) guiSetVisible ( WindowTest, not guiGetVisible ( WindowTest ) ) showCursor ( not isCursorShowing( ) ) end bindKey ( "F5","down", WindowTest ) Which error? Why dont show the window?
Guest Guest4401 Posted May 17, 2012 Posted May 17, 2012 Change bindKey ( "F5","down", WindowTest ) to bindKey ( "F5","down", ShowTest )
Guest Guest4401 Posted May 17, 2012 Posted May 17, 2012 WindowTest = guiCreateWindow(350,250,450,320,"Exemplo",false) guiWindowSetSizable(WindowTest,false) guiSetVisible(WindowTest,false) function ShowTest ( ) guiSetVisible ( WindowTest, not guiGetVisible ( WindowTest ) ) showCursor ( not isCursorShowing( ) ) end bindKey ( "F5","down", ShowTest )
Smart. Posted May 17, 2012 Posted May 17, 2012 try; WindowTest = guiCreateWindow(350,250,450,320,"Exemplo",false) guiWindowSetSizable(WindowTest,false) guiSetVisible(WindowTest,false) function ShowTest ( ) guiSetVisible ( WindowTest, not guiGetVisible ( WindowTest ) ) showCursor ( guiGetVisible ( WindowTest ) ) end bindKey ( "F5","down", ShowTest )
TAPL Posted May 17, 2012 Posted May 17, 2012 dont work here... it's should work are sure you're not using it server-side? did you try debugscript 3 ?
yMassai Posted May 17, 2012 Author Posted May 17, 2012 To use this function "guiCreateWindow" i use "client"
Smart. Posted May 17, 2012 Posted May 17, 2012 If the whole script is client sided it should work as it works on mine.
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