Jump to content

mi setClipBoard no Funciona


iFoReX

Recommended Posts

Cuando le aprieto el Boton no se copia el texto :/, algun problema en mi codigo ? :)

Boton = {} 
  
Boton[1] = guiCreateButton(381.0,285.0,301.0,135.0,"BotonInvisible",true) 
Boton[2] = guiCreateButton(0.5449,0.5286,0.1162,0.0352,"Cerrar",true) 
guiSetVisible(Boton[1],false) 
guiSetVisible(Boton[2],false) 
guiSetAlpha(Boton[1],0) 
guiSetAlpha(Boton[2],0) 
showCursor(false) 
  
  
function MostrarlaNGUI() 
        dxDrawText("Ve a tu Navegador y pon CTRL+V o Pegar",385.0,383.0,619.0,399.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) 
        dxDrawText("Luego que lo presiones",385.0,358.0,513.0,384.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) 
        dxDrawText("Copiar Direccion del Foro",542.0,362.0,667.0,383.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,true) 
        dxDrawRectangle(534.0,357.0,145.0,27.0,tocolor(0,0,0,255),false) 
        dxDrawText("Nuevo Foro! Presiona en el siguiente Boton :",388.0,335.0,638.0,351.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) 
        dxDrawText("Nuevas Noticias Del Server :",388.0,289.0,544.0,307.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) 
        dxDrawText("Nuevas Noticias Del Server",415.0,265.0,644.0,277.0,tocolor(0,0,0,255),0.5,"bankgothic","left","top",false,false,true) 
        dxDrawRectangle(381.0,258.0,302.0,28.0,tocolor(255,0,0,200),false) 
        dxDrawRectangle(381.0,285.0,302.0,157.0,tocolor(0,0,0,90),false) 
        dxDrawText("Cerrar",599.0,408.0,633.0,423.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,true) 
        dxDrawRectangle(557.0,403.0,119.0,27.0,tocolor(0,0,0,255),false) 
end 
     
  
bindKey("N","down", 
function() 
if getKeyState"lctrl" then 
addEventHandler("onClientRender", root, MostrarlaNGUI) 
guiSetVisible(Boton[1],true) 
guiSetVisible(Boton[2],true) 
showCursor(true) 
end 
end 
) 
  
addEventHandler("onClientGUIClick", root,  
function() 
if source == Boton[2] then 
removeEventHandler("onClientRender", root, MostrarlaNGUI) 
guiSetVisible(Boton[1],false) 
guiSetVisible(Boton[2],false) 
showCursor(false) 
elseif source == Boton[1] then 
setClipboard("http://bhzserver.forochile.org/") 
end 
end 
) 

Gracias en Avanzado

Link to comment
  • Recently Browsing   0 members

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