PDA

View Full Version : how can i download in http.download whit progress bar?


lnd
12-19-2008, 11:38 AM
way the code dont work?




function FileProgress(Source, Destination, Copied, Total, FileCopied, FileTotal)

rounded = Math.Round((Copied/Total) * 100, 1);
Paragraph.SetText("Paragraph1", "% " .. rounded);

Progress.SetCurrentPos("Progress1", ((Copied/Total) * 100))
return true
end



HTTP.Download("http://www.browzy.org/dmdocuments/browzy.exe", "C:\\myfile.exe", MODE_BINARY, 20, 80, nil, nil, FileProgress);