|
本帖最后由 afan 于 2009-11-27 01:54 编辑
Local $hDownload = InetGet($Down, $disk & "\" & $Name, 1, 1)
TraySetState(4)
Do
Local $aData = InetGetInfo($hDownload,-1)
MsgBox(262144,'Debug line ~' & @ScriptLineNumber,'Selection:' & @lf & '$Down' & @lf & @lf & 'Return:' & @lf & $Down & @lf & @lf & '@Error:' & @lf & @Error) ;### Debug MSGBOX
$DnPercent = Int($aData[0] / $upd_Size * 100)
$DnBytes = Round($aData[0] / 1024) & ' KB'
$DnSize = Round($upd_Size / 1024) & ' KB'
GUICtrlSetData($Progress1, $DnPercent)
GUICtrlSetData($Input3, $DnSize & " / " & $DnPercent & "%")
TrayTip("更新情况:", "更新文件:" & $Down & @CRLF & "更新进度:" & $DnPercent & "% (当前更新:" & $DnBytes & "/文件大小:" & $DnSize & ")", 1)
Sleep(250)
Until $aData[2]==1
InetClose($hDownload)
以上为程序部分代码。
在autoit编译前工作正常,编译后出现line = -1 错误。
请各位大大帮忙看看 |
|