作者: SKAN, Olfen, Lexikos 最近更新时间: 20090703
As the name suggests, this function reads a file from internet (passed to it as URL). It is similar to AHK FileRead command.
InternetFileRead( ByRef V, URL="", RB=0, bSz=1024, DLP="DLP", F=0x84000000 )
InternetFileRead_DLP( WP=0, LP=0, Msg="" )
InternetFileRead_VarZ_Save( byRef V, File="" )
关于函数的参数和返回值, 请参阅其源码或 此文档.
To make it stdlib conform, I have outcommented the autoexecution area and added "InternetFileRead"-prefix on all functions.
The documentation is part of authors original first posting.
关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?t=45718
不存在
; #Include InternetFileRead.ahk ; Modified third example by SKAN ; Example: Download a http file: AutoHotkey installer (~2 MB) and save & run it. URL := "http://www.autohotkey.com/download/AutoHotkeyInstall.exe" If ( InternetFileRead( binData, URL ) > 0 && !ErrorLevel ) If InternetFileRead_VarZ_Save( binData, A_Temp "\AutoHotkeyInstall.exe" ) { Sleep 500 InternetFileRead_DLP( false ) ; or use Progress, off Run %A_Temp%\AutoHotkeyInstall.exe }