本帖最后由 lodas 于 2009-10-13 18:52 编辑
出现这个错误, “autoit error:未知函数名”
我编译个下载程序按照说明文档来编写的。在编译器上运行可以,但是编译成exe以后运行就用问题。
也有可能是下载的文件大造成的,但按F5运行没错啊。
请高手指点。
; Advanced example - downloading in the background
Local $hDownload = InetGet("http://dl1.g-fox.cn/chinaedition/releases/partners/monline/FirefoxChinaEdition-latest.exe", "Mozilla.exe",1, 1)
Do
Sleep(250)
Until InetGetInfo($hDownload, 2) ; Check if the download is complete.
Local $nBytes = InetGetInfo($hDownload, 0)
InetClose($hDownload) ; Close the handle to release resourcs.
MsgBox(0, "", "Bytes read: " & $nBytes) |