efk_715 Posted May 20, 2011 Share Posted May 20, 2011 Aıo çalışmamda progresbar kullanmak istiyorum ama checkboxlarla nasıl ilişkilendirebilirim bilmiyorum. butona yazdığım kod bu : [code]c1=CheckBox.GetChecked("CheckBox1") c2=CheckBox.GetChecked("CheckBox2") c3=CheckBox.GetChecked("CheckBox3") if c1 then File.Run("AutoPlay\\Docs\\seven.exe", "", "", SW_HIDE, true); Paragraph.SetText("Paragraph1","SEVENKGKFD kurulumu tamamlandi") end if c2 then File.Run("AutoPlay\\Docs\\iso.exe", "", "",SW_HIDE, true); Paragraph.SetText("Paragraph1","ULTRAISOOSO kurulumu tamamlandi") end if c3 then File.Run("AutoPlay\\Docs\\ins.exe", "", "",SW_HIDE, true); Paragraph.SetText("Paragraph1","INSTAL kurulumu tamamlandi") end[/code] Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted May 20, 2011 Share Posted May 20, 2011 Bu konuya bi bak istersen. Faydalı olabilir. [code]http://www.tnctr.com/topic/171326-ylerleme-cubugu-nasyl-eklenir/[/code] Quote Link to comment Share on other sites More sharing options...
KintaRo Posted May 20, 2011 Share Posted May 20, 2011 evet @Baba_ 'nın verdiği konu ile aynı kodlar şu şekilde yaparsan olur: [codebox]c1=CheckBox.GetChecked("CheckBox1") c2=CheckBox.GetChecked("CheckBox2") c3=CheckBox.GetChecked("CheckBox3") --###### Progress Ayarları ########## nToplam = 0; for i=1,33 do if CheckBox.GetChecked("CheckBox" .. i) then nToplam = nToplam+1 end end Progress.SetRange("Progress1", 0, nToplam) Progress.SetCurrentPos("Progress1", 0) --##################################### if c1 then nPos = Progress.GetCurrentPos("Progress1") Progress.SetCurrentPos("Progress1", nPos+1) File.Run("AutoPlay\\Docs\\seven.exe", "", "", SW_HIDE, true); Paragraph.SetText("Paragraph1","SEVENKGKFD kurulumu tamamlandi") end if c2 then nPos = Progress.GetCurrentPos("Progress1") Progress.SetCurrentPos("Progress1", nPos+1) File.Run("AutoPlay\\Docs\\iso.exe", "", "",SW_HIDE, true); Paragraph.SetText("Paragraph1","ULTRAISOOSO kurulumu tamamlandi") end if c3 then nPos = Progress.GetCurrentPos("Progress1") Progress.SetCurrentPos("Progress1", nPos+1) File.Run("AutoPlay\\Docs\\ins.exe", "", "",SW_HIDE, true); Paragraph.SetText("Paragraph1","INSTAL kurulumu tamamlandi") end[/codebox] Quote Link to comment Share on other sites More sharing options...
whitedeath Posted May 21, 2011 Share Posted May 21, 2011 progres çubuğunda nasıl yüzde şu kadarı kuruldu diye özellik yapabilirim Quote Link to comment Share on other sites More sharing options...
KintaRo Posted May 22, 2011 Share Posted May 22, 2011 [codebox]c1=CheckBox.GetChecked("CheckBox1") c2=CheckBox.GetChecked("CheckBox2") c3=CheckBox.GetChecked("CheckBox3") --###### Progress Ayarları ########## nToplam = 0; for i=1,33 do if CheckBox.GetChecked("CheckBox" .. i) then nToplam = nToplam+1 end end Progress.SetRange("Progress1", 0, nToplam) Progress.SetCurrentPos("Progress1", 0) nAralik = 100/nToplam nSira=0 --##################################### if c1 then nPos = Progress.GetCurrentPos("Progress1") Progress.SetCurrentPos("Progress1", nPos+1) File.Run("AutoPlay\\Docs\\seven.exe", "", "", SW_HIDE, true); Paragraph.SetText("Paragraph1","SEVENKGKFD kurulumu tamamlandi") nSira=nSira+1 Progress.SetText("Progress1", "%" .. Math.Round(nAralik*nSira, 0)) Application.Sleep(2000) end if c2 then nPos = Progress.GetCurrentPos("Progress1") Progress.SetCurrentPos("Progress1", nPos+1) File.Run("AutoPlay\\Docs\\iso.exe", "", "",SW_HIDE, true); Paragraph.SetText("Paragraph1","ULTRAISOOSO kurulumu tamamlandi") nSira=nSira+1 Progress.SetText("Progress1", "%" .. Math.Round(nAralik*nSira, 0)) Application.Sleep(2000) end if c3 then nPos = Progress.GetCurrentPos("Progress1") Progress.SetCurrentPos("Progress1", nPos+1) File.Run("AutoPlay\\Docs\\ins.exe", "", "",SW_HIDE, true); Paragraph.SetText("Paragraph1","INSTAL kurulumu tamamlandi") nSira=nSira+1 Progress.SetText("Progress1", "%" .. Math.Round(nAralik*nSira, 0)) Application.Sleep(2000) end [/codebox] Quote Link to comment Share on other sites More sharing options...
MostWanted Posted May 23, 2011 Share Posted May 23, 2011 http://www.tnctr.com/topic/137346-checkbox-anlatymy-4 Quote Link to comment Share on other sites More sharing options...
barcoletti Posted May 23, 2011 Share Posted May 23, 2011 peki bir dosyayı kopyalatırken [b]"filecopy komutu"[/b] ile bunu progressbar gösterecek ustalar aranıyor.. Quote Link to comment Share on other sites More sharing options...
MostWanted Posted May 23, 2011 Share Posted May 23, 2011 Aio dersleri Koleksiyonda http://www.tnctr.com/topic/95936-aio-dersleri-koleksiyon/ File.Copy komutu ile progress kullanmak videosunu izle.. 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.