获取下载某个东西的下载率
以前一直用 While @InetGetActive来获取下载东西的下载率,但是新版本的autoit却删除了@InetGetActive所以不能用,请问现在用什么来获取下载率的呢? Local $sFileURL= "http://intop.newhua.com/down/1KG_20101010_HD.rar"Local $sFileSave = "C:\1.rar"
Local $iFileSize = InetGetSize($sFileURL)
Local $fPercent
Local $hDownload
$hDownload = InetGet($sFileURL, $sFileSave, 1, 1)
Do
Sleep(50)
$fPercent= Round(InetGetInfo($hDownload, 0) / $iFileSize, 3)
ToolTip($sFileURL &@LF& "文件大小: " & $iFileSize & " Bytes" &@LF& "已经下载: " & $fPercent * 100 & "%", 0, 0, "正在下载文件:")
Until $fPercent = 1
Exit
页:
[1]