15 lines
359 B
AutoHotkey
15 lines
359 B
AutoHotkey
URLDownloadToVar(url){
|
|
|
|
hObject:=ComObjCreate("WinHttp.WinHttpRequest.5.1")
|
|
hObject.Open("GET",url)
|
|
|
|
try {
|
|
hObject.Send()
|
|
}
|
|
catch e {
|
|
; MsgBox, 4096, Error, Failed to connect to:`n`n%url%`n`nAre you connected to the internet? Or is the website down?`n`nDisable Auto Update Check to disable this message.
|
|
return ""
|
|
}
|
|
|
|
return hObject.ResponseText
|
|
} |