Gracias amigo ya consegui lo de duplicar los Item el problema era que puse lo que me dijistes
ListBoxEx.DeleteAllItems("ListBoxEx1"); y ListBoxEx1 es el objeto lo reemplaze por ListBoxEx.DeleteAllItems("Plugin1"); y ya esta muchas gracias amigo.
lo del codigo de los videos me di cuenta pero es que no me funciona no se que hago mal por eso te mande todo el proyecto el de pagina On show y el primero que mande que va en ListBoxEx On Select
En fin te mando el proyecto tal como lo tengo ahora Haber si atinamos, muchas gracias te agradesco tu ayuda
--Pagina ON Show
--NO DUPLIQUEN LOS ITEM::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
ListBoxEx.DeleteAllItems("Plugin1");
-------------------------------------------------------------------------------------------------------------------------------------------
ListBoxEx.SetUpdate("Plugin1", false);
--TUTORIALES::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
nIndex = ListBoxEx.AddItem("Plugin1", "<b>TUTORIALES<b>", "", "", "", 1, LBXITEM_HTML, 0, {50732,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, VERICAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemDataEx("Plugin1", nIndex, "close");
nIndex = ListBoxEx.AddItem("Plugin1", "TUTORIAL 1", "", "TUTORIAL 1.txt", "TUTORIALES", 3, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
nIndex = ListBoxEx.AddItem("Plugin1", "TUTORIAL 2", "", "TUTORIAL 2.txt", "TUTORIALES", 3, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
--CARPETAS::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
nIndex = ListBoxEx.AddItem("Plugin1", "<b>CARPETAS<b>", "", "", "", 1, LBXITEM_HTML, 0, {50732,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, VERICAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemDataEx("Plugin1", nIndex, "close");
nIndex = ListBoxEx.AddItem("Plugin1", "GALERIA", "", "GALERIA - Acceso directo.lnk", "CARPETAS", 4, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
nIndex = ListBoxEx.AddItem("Plugin1", "IMAGENES", "", "IMAGENES - Acceso directo.lnk", "CARPETAS", 4, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
--EJECUTABLES::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
nIndex = ListBoxEx.AddItem("Plugin1", "<b>EJECUTABLES<b>", "", "", "", 1, LBXITEM_HTML, 0, {50732,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, VERICAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemDataEx("Plugin1", nIndex, "close");
nIndex = ListBoxEx.AddItem("Plugin1", "EJECUTABLE 1", "", "EJECUTABLE 1.exe", "EJECUTABLES", 5, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
nIndex = ListBoxEx.AddItem("Plugin1", "EJECUTABLE 2", "", "EJECUTABLE 2.exe", "EJECUTABLES", 5, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
--VIDEOS::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
nIndex = ListBoxEx.AddItem("Plugin1", "<b>VIDEOS<b>", "", "", "", 1, LBXITEM_HTML, 0, {50732,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, VERICAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemDataEx("Plugin1", nIndex, "close");
nIndex = ListBoxEx.AddItem("Plugin1", "VIDEO1", "", "VIDEO1.mp4", "VIDEOS", 6, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
nIndex = ListBoxEx.AddItem("Plugin1", "VIDEO2", "", "VIDEO2.mp4", "VIDEOS", 6, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
--::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
ListBoxEx.SetUpdate("Plugin1", true);
--ListBoxEx On Select
--SONIDO PULSAR LISTBOXEX:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
tSelected = ListBoxEx.GetSelectedItem("ListBoxEx1")
if tSelected then
Audio.Load(CHANNEL_BACKGROUND, "AutoPlay\\Audio\\Click1.ogg", true, false)
end
--TUTORIALES:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
if (e_Index == 1) then
if (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "close") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "open");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 2);
ListBoxEx.SetItemVisible("Plugin1", 2, true);
ListBoxEx.SetItemVisible("Plugin1", 3, true);
ListBoxEx.Redraw("Plugin1");
elseif (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "open") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "close");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 1);
ListBoxEx.SetItemVisible("Plugin1", 2, false);
ListBoxEx.SetItemVisible("Plugin1", 3, false);
ListBoxEx.Redraw("Plugin1");
end
--CARPETAS:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
elseif (e_Index == 4) then
if (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "close") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "open");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 2);
ListBoxEx.SetItemVisible("Plugin1", 5, true);
ListBoxEx.SetItemVisible("Plugin1", 6, true);
ListBoxEx.Redraw("Plugin1");
elseif (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "open") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "close");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 1);
ListBoxEx.SetItemVisible("Plugin1", 5, false);
ListBoxEx.SetItemVisible("Plugin1", 6, false);
ListBoxEx.Redraw("Plugin1");
end
--EJECUTABLES:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
elseif (e_Index == 7) then
if (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "close") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "open");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 2);
ListBoxEx.SetItemVisible("Plugin1", 8, true);
ListBoxEx.SetItemVisible("Plugin1", 9, true);
ListBoxEx.Redraw("Plugin1");
elseif (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "open") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "close");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 1);
ListBoxEx.SetItemVisible("Plugin1", 8, false);
ListBoxEx.SetItemVisible("Plugin1", 9, false);
ListBoxEx.Redraw("Plugin1");
end
--VIDEOS:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
elseif (e_Index == 10) then
if (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "close") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "open");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 2);
ListBoxEx.SetItemVisible("Plugin1", 11, true);
ListBoxEx.SetItemVisible("Plugin1", 12, true);
ListBoxEx.Redraw("Plugin1");
elseif (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "open") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "close");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 1);
ListBoxEx.SetItemVisible("Plugin1", 11, false);
ListBoxEx.SetItemVisible("Plugin1", 12, false);
ListBoxEx.Redraw("Plugin1");
end
--:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
else
strTxt = ListBoxEx.GetItemData("Plugin1", e_Index);
File.Open(strTxt, "AutoPlay\\Docs\\TUTORIALES\\");
strlnk = ListBoxEx.GetItemData("Plugin1", e_Index);
File.Open(strlnk, "AutoPlay\\Docs\\CARPETAS\\");
strExe = ListBoxEx.GetItemData("Plugin1", e_Index);
File.Open(strExe, "AutoPlay\\Docs\\EJECUTABLES\\");
strMp4 = ListBoxEx.GetItemData("Plugin1", e_Index);
Video.Load(strMp4, "AutoPlay\\Docs\\VIDEOS\\");
end