Jump to content

Progress Kullanımı


baykus41

Recommended Posts

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

Otokur daki programlarin kurulum sirasina göre progress cubugunun yürümesini nasil ayarliyabiliriz

y73bdzxf.jpg

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

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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...