Anyelberth Posted June 23, 2013 Share Posted June 23, 2013 Hola Chicos. Una Ayudita. function Panels() Panel = guiCreateWindow(40,2,726,590,"BlaBlaBlaBla",false) Imagen = guiCreateStaticImage(9,23,708,558,"images/image12.png",false,Panel) end addCommandHandler ( "ASC", Panels ) Como Modificaria Para Que Este Panel No Abriera Con AddCommandHandler y Abra y Cierre Con un BindKey Como Por Ejemplo Abra Con La Tecla F3 Link to comment
Plate Posted June 24, 2013 Share Posted June 24, 2013 bindKey('f3','down', function() guiSetVisible(la ventana, not guiGetVisible(la ventana)) showCursor(not isCursorShowing()) end ) Link to comment
Anyelberth Posted June 24, 2013 Author Share Posted June 24, 2013 function Panels() Panel = guiCreateWindow(40,2,726,590,"BlaBlaBlaBla",false) Imagen = guiCreateStaticImage(9,23,708,558,"images/image12.png",false,Panel) end bindKey('f3','down', function() guiSetVisible(Panels, not guiGetVisible(Panels)) showCursor(not isCursorShowing()) end ) Haci como sta Me Sale Error: Bad Argument guiSetVisible Link to comment
Plate Posted June 24, 2013 Share Posted June 24, 2013 function Panels() Panel = guiCreateWindow(40,2,726,590,"BlaBlaBlaBla",false) Imagen = guiCreateStaticImage(9,23,708,558,"images/image12.png",false,Panel) end bindKey('f3','down', function() guiSetVisible(Panels, not guiGetVisible(Panels)) showCursor(not isCursorShowing()) end ) Haci como sta Me Sale Error: Bad Argument guiSetVisible por que tu ventana se llama Panel y vos pusistes Panels Link to comment
Anyelberth Posted June 24, 2013 Author Share Posted June 24, 2013 Ya lo avía echo y también me sale Ese Error Link to comment
Plate Posted June 24, 2013 Share Posted June 24, 2013 Panel = guiCreateWindow(40,2,726,590,"BlaBlaBlaBla",false) Imagen = guiCreateStaticImage(9,23,708,558,"images/image12.png",false,Panel) guiSetVisible(Panel, false) bindKey('f3','down', function() guiSetVisible(Panel, not guiGetVisible(Panel)) showCursor(not isCursorShowing()) end ) A mi me funciona en mis resources Link to comment
Recommended Posts