I've been using two scripts for many years to download the current AHK version number, compare it to what I'm running, and offer to download the installer or ZIP file. The download of the V1 and V2 files with the version number stopped working sometime within the past few days. I extracted a small portion of the scripts to show the problem:
Code: Select all
; this is for V2
fileCurrentVersion:=A_Temp . "\AutoHotkeyCurrentVersionV2.txt"
urlCurrentVersion:="https://www.autohotkey.com/download/2.0/version.txt"
Try Download(urlCurrentVersion,fileCurrentVersion)
Catch Error as DownloadError
{
DownloadErrorMessage:=DownloadError.Message
MsgBox("Error Message " . DownloadErrorMessage . " trying to download V2 version number`n`nURL=" . urlCurrentVersion . "`n`nFile=" . fileCurrentVersion,"AutoHotkey V2 Download Failed","4112")
ExitApp
}
Run fileCurrentVersion
ExitApp
Code: Select all
; this is for V1
fileCurrentVersion:=A_Temp . "\AutoHotkeyCurrentVersionV1.txt"
urlCurrentVersion:="https://www.autohotkey.com/download/1.1/version.txt"
UrlDownloadToFile,%urlCurrentVersion%,%fileCurrentVersion%
If (ErrorLevel!=0)
{
MsgBox,4112,AutoHotkey V1 Download Failed,Error Level=%ErrorLevel% trying to download V1 version number`n`nURL=%urlCurrentVersion%`n`nFile=%fileCurrentVersion%
ExitApp
}
Run,%fileCurrentVersion%
ExitApp
I don't know if this should be characterized as a "Bug Report", but it seemed as good a place as any to post it. But an admin should move it to a more appropriate place, if need be. Btw, going to those files in a web browser works fine, so the "bug" would seem to be related to the download feature. Regards, Joe