I'm not sure if this is the right spot to post this, but the script to automatically update autohotkey is broken.
The script located here: https://autohotkey.com/download/Update.ahk
First the variables on the top are incorrect, the one in the script does not use the URL_Base variable and instead uses UpdateURL which is not defined
URL_Version = %UpdateURL%/1.1/version.txt <--Incorrect Variable
URL_Version = %URL_Base%/1.1/version.txt <--Fixed Variable
Then, the try function to check for the current version is looking for VersionURL which is not defined.
; Retrieve latest version number. <--VersionURL isn't defined
try
{
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.Open("GET", VersionURL, false), whr.Send()
version := whr.ResponseText
if !(version ~= "^\d+\.\d")
throw ; 404?
}
Should be the following:
whr.Open("GET", URL_Version, false), whr.Send()
Autohotkey Updater Script Topic is solved
Re: Autohotkey Updater Script
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: Autohotkey Updater Script
That's a silly mistake. Fortunately, Update.ahk is obsolete.
The check for updates is built into AutoHotkey Setup (Installer.ahk), which you already have if you've installed AutoHotkey. It's in the Start menu and Control Panel. If there is an update, the first option in setup will be "Download v1.1.xx.xx" instead of "Reinstall". Clicking it does the same thing as clicking "Yes" in Update.ahk.
The check for updates is built into AutoHotkey Setup (Installer.ahk), which you already have if you've installed AutoHotkey. It's in the Start menu and Control Panel. If there is an update, the first option in setup will be "Download v1.1.xx.xx" instead of "Reinstall". Clicking it does the same thing as clicking "Yes" in Update.ahk.
Re: Autohotkey Updater Script Topic is solved
I've fixed it.
Who is online
Users browsing this forum: No registered users and 38 guests