re-enabled logging to text file, updated+fixed URLdownloadtovar error message
parent
f15d3ed2f0
commit
981051a9e8
@ -1,11 +1,14 @@
|
|||||||
URLDownloadToVar(url){
|
URLDownloadToVar(url){
|
||||||
|
|
||||||
hObject:=ComObjCreate("WinHttp.WinHttpRequest.5.1")
|
hObject:=ComObjCreate("WinHttp.WinHttpRequest.5.1")
|
||||||
hObject.Open("GET",url)
|
hObject.Open("GET",url)
|
||||||
|
|
||||||
try hObject.Send()
|
try {
|
||||||
|
hObject.Send()
|
||||||
|
}
|
||||||
catch e {
|
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 ""
|
||||||
; msgbox, failed!
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return hObject.ResponseText
|
return hObject.ResponseText
|
||||||
|
Loading…
Reference in New Issue