Jump to content

Ini Den Verileri Listbox A Yazdırma Ve Indirtmek


WolfmanTR_
 Share

Recommended Posts

arkadaşlar, şimdi ini içindeki dosyayı listbox a yazdırmak tamamda, ben şöyle birşey yapacağım,

ini içinde  örn 

mozilla firefox 1.70 

rul=http://sadsadsadas.exe

winrar 4.20

url=http://sadasda.exe

 

olacak ini den alan veriyi list e yazdıracak listten seçilen program, url ye bağlanıp indirecek.tam olarak yapmak istediğim bu, eğer .ini ile yapılamazsa xml de olur

Link to comment
Share on other sites

  • Editor

Öncelikle teşekkürler.Sen anladın.

 

Listbox On-Double Click kısmına.

 

result = ListBox.GetSelected("ListBox1");
sec = ListBox.GetItemData("ListBox1",result[1]);
Dialog.Message("",sec);

 

Listbox a inideki dosyaları eklemesi için butonun on click evresine

 

result = INIFile.GetSectionNames("AutoPlay\\Docs\\ad.ini");

for i,v in pairs(result) do
url = INIFile.GetValue("AutoPlay\\Docs\\ad.ini", v, "url");
result = ListBox.AddItem("ListBox1", v, url);
end
Link to comment
Share on other sites

@pairs, arkadaşım bir yerde takıldım, şimdi list ten seçilen dosya adıyla inmesini istiyorum, onu nasıl gerçekleştireblirim ?

 

result = ListBox.GetSelected("ListBox1");
sec = ListBox.GetItemData("ListBox1",result[1]);


StatusDlg.Show(MB_ICONINFORMATION, false); 
StatusDlg.ShowProgressMeter(true); 
StatusDlg.SetTitle("İndiriliyor"); 
StatusDlg.SetMessage("Seçtiğiniz Program İndiriliyor..."); 
StatusDlg.SetStatusText("Yükleme İlerlemesi"); 


HTTP.Download(sec, _DesktopFolder .."secilen_dosya.zip", 20, 80) 


StatusDlg.SetMeterPos(100); 
Application.Sleep(1000); 

StatusDlg.Hide();
Edited by wolfman.tr_
Link to comment
Share on other sites

  • Editor
result = ListBox.GetSelected("ListBox1");
sec = ListBox.GetItemData("ListBox1",result[1]);


StatusDlg.Show(MB_ICONINFORMATION, false); 
StatusDlg.ShowProgressMeter(true); 
StatusDlg.SetTitle("İndiriliyor"); 
StatusDlg.SetMessage("Seçtiğiniz Program İndiriliyor..."); 
StatusDlg.SetStatusText("Yükleme İlerlemesi"); 


HTTP.Download(sec, _DesktopFolder .."\\"..ListBox.GetItemText("ListBox1",result[1]).zip,20, 80) 


StatusDlg.SetMeterPos(100); 
Application.Sleep(1000); 

StatusDlg.Hide();

 

bu kodu kullanabilirsin kardeşim.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...