PDA

View Full Version : progress bar help


GoOgLe
02-17-2009, 03:33 PM
i want to show progress bar for process... it is about 12.5 seconds i have the code working i just need to add progress bar... can someone please help me ???

this my working code

site = Input.GetText("Input1");
File.Run("AutoPlay\\Docs\\ccc.exe", "/URL "..site.." /Filename \"c:\\"..site..".png\" /DisableScrollBars 1 /BrowserAutoSize 1", "", SW_SHOWNORMAL, false);
Application.Sleep(12500);
File.Open("c:\\"..site..".png", "", SW_SHOWNORMAL);

Imagine Programming
02-17-2009, 06:53 PM
site = Input.GetText("Input1");
File.Run("AutoPlay\\Docs\\ccc.exe", "/URL "..site.." /Filename \"c:\\"..site..".png\" /DisableScrollBars 1 /BrowserAutoSize 1", "", SW_SHOWNORMAL, false);
for i=1, 12500 do
Progress.SetCurrentPos("Progress1", 100*(i/12500)); --Progress range: 1 - 100
Application.Sleep(1);
end
File.Open("c:\\"..site..".png", "", SW_SHOWNORMAL);

I guess this will stall the application though, but you can try:)

It's a long wait though:p