AHK v2 source code: identify version number

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

AHK v2 source code: identify version number

16 Oct 2019, 13:15

(I'm sorting/renaming folders...)
Does the AHK v2 source code indicate the AHK v2 alpha version number somewhere?
In AHK v1, you can see it in ahkversion.h.

Otherwise, are there any tips?
E.g. I could search for the presence/absence of built-in functions.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
MannyKSoSo
Posts: 440
Joined: 28 Apr 2018, 21:59

Re: AHK v2 source code: identify version number

16 Oct 2019, 14:23

You can check the AutoHotkey.chm file. It should show the version number
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: AHK v2 source code: identify version number

16 Oct 2019, 15:05

Yes, but the source code zips don't contain a .chm file.

AutoHotkey GitHub links - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=81&t=62329
Last edited by jeeswg on 16 Oct 2019, 15:26, edited 1 time in total.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: AHK v2 source code: identify version number

16 Oct 2019, 15:13

its not in the source
looks like @Lexikos uploads a special version that has the number and commit punched in
lexikos
Posts: 9690
Joined: 30 Sep 2013, 04:07
Contact:

Re: AHK v2 source code: identify version number

18 Oct 2019, 18:45

The release script sets the version number when building, and tags new versions in git.

Even if the latest release is v2.0-a106, the zip download might be v2.0-a106 plus some commits. If you clone the repository with git, you get the current head commit, every previous commit, and optionally the tags that show which commit corresponds to which release. git describe prints the last tag, but if there have been commits since that, it appends the number of commits and current commit hash.

GitHub Releases shows a zip download for each tag. In that case, you're getting the exact code for that version based on the tag. You know what version it is, because you downloaded it for that version (and it's probably in the filename).

If you just want the latest version number, download 2.0/version.txt.
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: AHK v2 source code: identify version number

17 Nov 2019, 01:27

@lexikos: Thanks.

Some info re. the names of zip files:

To download official releases:
[recommended: e.g. AutoHotkey_L-2.0-a107.zip, AutoHotkey_L-1.1.31.01.zip]
Releases · Lexikos/AutoHotkey_L · GitHub
https://github.com/Lexikos/AutoHotkey_L/releases

To download the latest AHK v2 release:
[warning: the name is always 'AutoHotkey_L-alpha.zip']
GitHub - Lexikos/AutoHotkey_L at alpha
https://github.com/Lexikos/AutoHotkey_L/tree/alpha

To download the latest AHK v1.1 release:
[warning: the name is always 'AutoHotkey_L-master.zip']
GitHub - Lexikos/AutoHotkey_L: AutoHotkey - macro-creation and automation-oriented scripting utility for Windows.
https://github.com/Lexikos/AutoHotkey_L

To get the approximate version number for an 'AutoHotkey_L-alpha.zip' file or 'AutoHotkey_L-master.zip' file, you can check the modified date against one of:
AutoHotkey v2 alpha (UPDATES) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=37&t=2120
Changes & New Features | AutoHotkey
https://www.autohotkey.com/docs/AHKL_ChangeLog.htm

The differences between the file name patterns, only became clear to me, once I had collected all of the zips I'd previously downloaded, into one folder. Cheers.

I've updated the 'DOWNLOADS / RELEASES / REPOSITORIES' section, here:
AutoHotkey GitHub links - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=81&t=62329
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: bobstoner289, Draken and 59 guests