baykus41 Posted February 6, 2010 Share Posted February 6, 2010 autoplay media studio programında progress ekliyorum fakat progress üzerine tıklayınca hareket ediyor ben istiyorumki program açılırken kendi dolsun bunun bir kodu varsa yazabilirmisiniz Link to comment Share on other sites More sharing options...
spydevil Posted February 6, 2010 Share Posted February 6, 2010 arkadaşım öle bi yazıyorsunki neye göre dolum yapacak ne tür bi proje üzerinde çalışıyorsunki bişeyi ini dosyasınımı kontrol ediyor aramamı yapıyorsun ne yapacaksınki dolacak bizde ona göre yardımcı olalım Link to comment Share on other sites More sharing options...
peerfen Posted February 7, 2010 Share Posted February 7, 2010 Otokur daki programlarin kurulum sirasina göre progress cubugunun yürümesini nasil ayarliyabiliriz kur butonum asagidaki sekilde ana menüye progress cubugu ekleyip kodalara biseyler eklemem gerekiyor sanirim yardimci olursaniz sevinirim result = CheckBox.GetChecked("CheckBox1"); if result then Label.SetText("Label1", "Wmp 11"); File.Run("AutoPlay\\Docs\\Windows Media Player11.exe", "/w", "", SW_MAXIMIZE, true); Label.SetText("Label1", "Wmp 11 Ok"); Application.Sleep(1500); end result = CheckBox.GetChecked("CheckBox2"); if result then Label.SetText("Label1", "VisualTaskTips"); File.Run("AutoPlay\\Docs\\VisualTaskTips.exe", "/w", "", SW_MAXIMIZE, true); Label.SetText("Label1", "VisualTaskTips Ok"); Application.Sleep(1500); end result = CheckBox.GetChecked("CheckBox3"); if result then Label.SetText("Label1", "Antihacker"); File.Run("AutoPlay\\Docs\\Kaspersky Antihacker.exe", "/w", "", SW_MAXIMIZE, true); Label.SetText("Label1", "Antihacker Ok"); Application.Sleep(1500); end[/CODE] Link to comment Share on other sites More sharing options...
baykus41 Posted February 7, 2010 Author Share Posted February 7, 2010 Spydevil demek istediğim şu bu kod C: Sürücüsü doluluk oranını gösteriyor ama üzerine tıklayınca ben bunu kendiliğinden oranı göstermesini istiyorum Kodu Progress'in script kısmına yazıyorum function LeftOverMegs(Gigs,TotalMegs) return Math.Round(TotalMegs - (Gigs*1024), 0); end cSpFree = Drive.GetFreeSpace("C:"); cspace = Drive.GetSize("C:"); GBspace =cspace/1024 GBFree = cSpFree/1024 TotalGigs = Math.Round(GBspace, 0); FreeGigs = Math.Round(GBFree, 0); TotalMegs = LeftOverMegs(TotalGigs,cspace) FreeMegs = LeftOverMegs(FreeGigs,cSpFree) Label.SetText("cSpace_tr",""..FreeGigs.."GB Boş, "..TotalGigs.."GB Toplam"); Label.SetText("cSpace_us",""..FreeGigs.."GB Free, "..TotalGigs.."GB Total"); dolu=(cspace/1024) - (cSpFree/1024) tam=cspace/1024 Progress.SetCurrentPos("Progress1", Math.Ceil((dolu/tam)*100));[/CODE] Link to comment Share on other sites More sharing options...
spydevil Posted February 7, 2010 Share Posted February 7, 2010 @baykus41 http://www.indigorose.com/forums/showpost.php?p=146793&postcount=6[/CODE] Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.