InternetFileRead

Author: SKAN, Olfen, Lexikos Last Modified: 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="" )

For the functions's parameters and return value, please see it's source code or the document.

Remarks

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.

For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=45718

License

nonexistent

Example

; #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
       }