Ejdad Posted September 9, 2011 Share Posted September 9, 2011 S.aleykum Arkadaşlar..bir mp3player yapıyorum sorunum var. Listbox1: Burdaki verileri Saveplaylist butonuyla belirttigimiz uzantıda kopyalayacak. Saveplaylist:Buton: Buraya kopyalama kodları gelecek Open playlis:Buton: bunu ben hallettim. Bunun çözümünü rica ediyorum ilgili arkadaşlardan iyi günler. Quote Link to comment Share on other sites More sharing options...
pilgetir Posted September 9, 2011 Share Posted September 9, 2011 istediğini anlamadım ki tam ? Quote Link to comment Share on other sites More sharing options...
Ejdad Posted September 9, 2011 Author Share Posted September 9, 2011 Öncelikle konuyu yanlış yere açmışım dargınlıktan pardon..ilgililer taşınırsa sevinirim. Müzikplayere çalması için yüklenen mp3leri bir buton aracagılıyla..playlist yapması Quote Link to comment Share on other sites More sharing options...
pilgetir Posted September 9, 2011 Share Posted September 9, 2011 (edited) Demek istediğin şumu bir buton olacak bir listbox buton ile bilgisayardan şarkıyı seçeceğiz listboxa yüklenecek listboxdan da üstüne tıklayınca çalacak bumu ? Edited September 9, 2011 by pilgetir Quote Link to comment Share on other sites More sharing options...
Ejdad Posted September 9, 2011 Author Share Posted September 9, 2011 Hyr kardeş onlar projede mevcut benim demek istedigim...listboxa yüklenen müzikleri bir buton aracılıgıyla bir playlist dosyası oluşturacak. Quote Link to comment Share on other sites More sharing options...
pilgetir Posted September 9, 2011 Share Posted September 9, 2011 Proje dosyanı verirsen projene uyarlayayım. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted September 9, 2011 Share Posted September 9, 2011 Bu konu "Örnek Çalışmalar" forumundan "AutoPlay Media Studio" forumuna taşınmıştır. Quote Link to comment Share on other sites More sharing options...
Ejdad Posted September 9, 2011 Author Share Posted September 9, 2011 http://www.multiupload.com/4JW0K2DJUF Kardeş...save butonuyla kayıt edecek. Quote Link to comment Share on other sites More sharing options...
pilgetir Posted September 9, 2011 Share Posted September 9, 2011 (edited) artı arkadaşımızdan ayrdım alarak yapıldı.Al buyur; Gözat butonu; [quote]AddList("list");[/quote] Çalma listesi oluştur butonu; [quote]CreatePlayList("list")[/quote] Global Function kodları; [quote]--listeye ekle function AddList(list) local tFile = Dialog.FileBrowse(true,"Dosya Seçin:",_DesktopFolder,"MP3 Dosyası(*.mp3)|*.mp3|","","",true,false); if (tFile and tFile[1]~="CANCEL") then ListBox.SetUpdate(list,false); for i=1,#tFile do local split = String.SplitPath(tFile[i]); ListBox.AddItem(list,split.Filename..split.Extension,tFile[i]); end ListBox.SetUpdate(list,true); end end --çalma listesi oluştur function CreatePlayList(list) local count = ListBox.GetCount(list) if (count>0) then local tFile = Dialog.FileBrowse(false,"Dosya Kaydet",_DesktopFolder,"Çalma Listesi(*.m3u)|*.m3u|","","m3u",false,false); if (tFile and tFile[1]~="CANCEL") then local str = "" for i=1,count do str = str .. ListBox.GetItemData(list,i).."\r\n" end TextFile.WriteFromString(tFile[1],str,false); end else Dialog.Message("Uyarı","Listede veri yok."); end end[/quote] [codebox]http://www.mediafire.com/?z8qurx9yc8sawj2 [/codebox] artı teşekkürler (kadir abi) Edited September 9, 2011 by pilgetir Quote Link to comment Share on other sites More sharing options...
Ejdad Posted September 9, 2011 Author Share Posted September 9, 2011 (edited) Teşekkür ederim kardeş çok iyi oldu. Bir istegim daha olacak sizden tabi müsaitseniz birde bu kaydedilen playlisti projede açacak open kodu nedir ? Edited September 9, 2011 by Ejdad Quote Link to comment Share on other sites More sharing options...
pilgetir Posted September 9, 2011 Share Posted September 9, 2011 Projede açacak derken neresinde açacak media player plugindemi neyde açıklasan biraz. Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted September 9, 2011 Share Posted September 9, 2011 [quote name='Ejdad' date='09 September 2011 - 22:43 ' timestamp='1315597435' post='1076760'] Teşekkür ederim kardeş çok iyi oldu. Bir istegim daha olacak sizden tabi müsaitseniz birde bu kaydedilen playlisti projede açacak open kodu nedir ? [/quote] [b]Listeye Ekle Fonksiyonunu da Vermiş Zaten pilgetir.[/b] Quote Link to comment Share on other sites More sharing options...
artı Posted September 9, 2011 Share Posted September 9, 2011 [quote] Ya projene uyarlamadım zamanım yoktu kendim hazırladım.Al buyur; Gözat butonu; Alıntı AddList("list"); Çalma listesi oluştur butonu; Alıntı CreatePlayList("list") Global Function kodları; Alıntı --listeye ekle function AddList(list) local tFile = Dialog.FileBrowse(true,"Dosya Seçin:",_DesktopFolder,"MP3 Dosyası(*.mp3)|*.mp3|","","",true,false); if (tFile and tFile[1]~="CANCEL") then ListBox.SetUpdate(list,false); for i=1,#tFile do local split = String.SplitPath(tFile[i]); ListBox.AddItem(list,split.Filename..split.Extension,tFile[i]); end ListBox.SetUpdate(list,true); end end --çalma listesi oluştur function CreatePlayList(list) local count = ListBox.GetCount(list) if (count>0) then local tFile = Dialog.FileBrowse(false,"Dosya Kaydet",_DesktopFolder,"Çalma Listesi(*.m3u)|*.m3u|","","m3u",false,false); if (tFile and tFile[1]~="CANCEL") then local str = "" for i=1,count do str = str .. ListBox.GetItemData(list,i).."\r\n" end TextFile.WriteFromString(tFile[1],str,false); end else Dialog.Message("Uyarı","Listede veri yok."); end end [/quote] Çok ayıp mert sana hiç yakıştıramadım kendi hazırlamdığın şeyleri millete ben hazırladım diye yediriyorsun! Quote Link to comment Share on other sites More sharing options...
Ejdad Posted September 9, 2011 Author Share Posted September 9, 2011 İşte kayıt edilen playlisti geri listboxta açacak şekilde. Quote Link to comment Share on other sites More sharing options...
artı Posted September 9, 2011 Share Posted September 9, 2011 Sonradan değiştirmekle olmuyor bu işler mertcim daha çok başındasın bu işlerin birine yaptır işi sonra ben yaptım diye yaz tebrik ederim aynen devam et! Quote Link to comment Share on other sites More sharing options...
artı Posted September 9, 2011 Share Posted September 9, 2011 Ejdad projenin son halini koy yapıp yollayayım. [color="#0000FF"][b]Flood yaptığınız için uyarı aldınız.[/b][/color] Quote Link to comment Share on other sites More sharing options...
Ejdad Posted September 9, 2011 Author Share Posted September 9, 2011 (edited) http://www.multiupload.com/5919T9ZECE BURDA kardeş Edited September 9, 2011 by Ejdad Quote Link to comment Share on other sites More sharing options...
artı Posted September 9, 2011 Share Posted September 9, 2011 Buyur kardeş link : http://www.mediafire.com/?bg8ycmnsdpq3uu8 Quote Link to comment Share on other sites More sharing options...
artı Posted September 9, 2011 Share Posted September 9, 2011 Buyur kardeş link : http://www.mediafire.com/?bg8ycmnsdpq3uu8 Quote Link to comment Share on other sites More sharing options...
artı Posted September 9, 2011 Share Posted September 9, 2011 Global functions daki LoadPlayList te ufak bir değişiklik yap dalgınlığıma gelmiş doğrusu şöyle olacak: [code]--çalma listesini yükle function LoadPlayList(list) local tFile = Dialog.FileBrowse(true,"Dosya Kaydet",_DesktopFolder,"Çalma Listesi(*.m3u)|*.m3u|","","m3u",false,false); if (tFile and tFile[1]~="CANCEL") then local readTbl = TextFile.ReadToTable(tFile[1]); if (readTbl) then ListBox.SetUpdate(list,false); for i=1,#readTbl do local split = String.SplitPath(readTbl[i]); ListBox.AddItem(list,split.Filename..split.Extension,readTbl[i]); end ListBox.SetUpdate(list,true); end end end[/code] Quote Link to comment Share on other sites More sharing options...
Ejdad Posted September 9, 2011 Author Share Posted September 9, 2011 Çok Saolsın kardeş ya şimdi oldu tekrardan allah razı olsun iyi geceler Quote Link to comment Share on other sites More sharing options...
artı Posted September 9, 2011 Share Posted September 9, 2011 Rica ederim yoğun biri olduğum için fazla takılmıyorum buraya veya başka forumlara ve kimseye kızdığım yok (pilgetir). Sadece demek istediğim kendi yapmadığı şeyi niye kendi yapmış gibi gösteriyor benim bir sürü işim gücüm varken yardım ediyorum insanlık gösteriyoruz ama anlamıyorlar galiba insanlıktan neyse iyi geceler fazla uzatmayayım konuyu. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.