AutoHotkey v2.0-beta.1

Community news and information about new or upcoming versions of AutoHotkey
lexikos
Posts: 9494
Joined: 30 Sep 2013, 04:07
Contact:

AutoHotkey v2.0-beta.1

Post by lexikos » 24 Jul 2021, 19:28

AutoHotkey v2.0-beta.1 is now available.

Any further changes prior to the final v2.0.0 release should be of a minor nature (such as improvements to the error and warning dialogs), and should not affect the functionality of scripts. In other words, future releases are expected to be backward-compatible with this one.

This release does not include an installer, but it is in the works.

AutoHotkey v2 (about and downloads)

SHA256 hash

Changes in this release:

Fixed detection of unexpected Catch following Try/Catch/Else.
Changed Try..Else to unconditionally raise a load-time error.
Fixed anonymous functions unable to reference subsequent closures.
Fixed anonymous closures to be instantiated only once.
Changed DBPp context_get to exclude closure constants.

Minor maintenance

Aetzbarr
Posts: 25
Joined: 20 Jun 2020, 06:18

Re: AutoHotkey v2.0-beta.1

Post by Aetzbarr » 25 Jul 2021, 01:05

Congrats!

Don't forget to change the link "Download v2 Alpha" to "Download v2 Beta". :D
https://www.autohotkey.com/

1. Will v1 be updated until the final v2.0.0 is released?
2. Where can I find instructions for compiling without a .bin file?
3. Will the final v2.0.0 release include a compiler? or window spy?

lexikos
Posts: 9494
Joined: 30 Sep 2013, 04:07
Contact:

Re: AutoHotkey v2.0-beta.1

Post by lexikos » 25 Jul 2021, 05:08

There are some changes queued for v1.1.34. I don't intend to do much more with v1, but may continue applying bug fixes whenever it takes my interest. I make no promises.

The latest version of Ahk2Exe on GitHub supports the use of a v1.1.34+ or v2.0-a135+ .exe in place of a .bin file. Use that.
https://github.com/AutoHotkey/Ahk2Exe

Ahk2Exe is a v1 script. At this point, I do not plan to include Ahk2Exe in the v2 downloads, but the v2 installer will support installation and use alongside v1. The downloads will include Window Spy for v2.

AHK_user
Posts: 515
Joined: 04 Dec 2015, 14:52
Location: Belgium

Re: AutoHotkey v2.0-beta.1

Post by AHK_user » 25 Jul 2021, 06:32

:bravo: :dance: :superhappy:

Great work!!!

Now I will start to use v2 in new projects, and translate some v1 code and libraries.

SAbboushi
Posts: 252
Joined: 08 Dec 2014, 22:13

Re: AutoHotkey v2.0-beta.1

Post by SAbboushi » 25 Jul 2021, 08:56

Congrats! Great work!

User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: AutoHotkey v2.0-beta.1

Post by TheArkive » 25 Jul 2021, 08:57

It will be fun to see the uptick of activity in the AHK v2 subforum :D

iseahound
Posts: 1427
Joined: 13 Aug 2016, 21:04
Contact:

Re: AutoHotkey v2.0-beta.1

Post by iseahound » 25 Jul 2021, 22:33

Congrats!

User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Re: AutoHotkey v2.0-beta.1

Post by SKAN » 26 Jul 2021, 03:17

Congrats to the AHK community.
Many thanks to @lexikos.
🙏

User avatar
joedf
Posts: 8937
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: AutoHotkey v2.0-beta.1

Post by joedf » 26 Jul 2021, 09:36

This is a big annnouncement! :thumbup: :clap:
I think I might have to start using v2 more... :geek:
Image Image Image Image Image
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]

ahk7
Posts: 572
Joined: 06 Nov 2013, 16:35

Re: AutoHotkey v2.0-beta.1

Post by ahk7 » 26 Jul 2021, 13:44

Congrats! Perhaps make it sticky in other sub-fora so more people will see it and try it out (just to have more testers)?

User avatar
fincs
Posts: 527
Joined: 30 Sep 2013, 14:17
Location: Seville, Spain
Contact:

Re: AutoHotkey v2.0-beta.1

Post by fincs » 26 Jul 2021, 14:36

This is a major milestone for the future of AutoHotkey. It's hard to believe v2 has been in development for over 10 years, but it looks like we're finally seeing the light at the end of the tunnel :)

Finally stabilising the syntax/behaviour/feature set is going to be a big deal for the adoption of v2, I expect :thumbup:
fincs
Windows 11 Pro (Version 22H2) | AMD Ryzen 7 3700X with 32 GB of RAM | AutoHotkey v2.0.0 + v1.1.36.02
Get SciTE4AutoHotkey v3.1.0 - [My project list]

User avatar
hyaray
Posts: 85
Joined: 20 Jun 2015, 01:37
Contact:

Re: AutoHotkey v2.0-beta.1

Post by hyaray » 26 Jul 2021, 20:14

I use ahk for 6 years. still be trapped at v2-a102 :headwall: :headwall:
v1 to v2 a-102 is simple.
v103 to beta Changes a lot, and many changes is hard to deal.
It's important to tell people how to update.
We need demo for "dllcall" and "buffer" and so on...

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: AutoHotkey v2.0-beta.1

Post by swagfag » 26 Jul 2021, 21:59

hyaray wrote:
26 Jul 2021, 20:14
It's important to tell people how to update.
update... from what? u cant possibly expect a migration guide for any random past alpha version. read the changelog and update accordingly.
for v1 there is https://lexikos.github.io/v2/docs/v2-changes.htm
We need demo for "dllcall" and "buffer" and so on...

Code: Select all

#Requires AutoHotkey v1.1.33.09
VarSetCapacity(BigStruct, 64, 0xAB)
DllCall("somefunc", "Ptr", &BigStruct, "UInt", 64, Float, 123.456, "Ptr*", pAnotherThing, "Double")

#Requires AutoHotkey v2.0-beta.1
BigStruct := Buffer(64, 0xAB)
DllCall('somefunc', 'Ptr', BigStruct, 'UInt', BigStruct.Size, 'Float', 123.456, 'Ptr*', &pAnotherThing := 0, 'Double')

Aetzbarr
Posts: 25
Joined: 20 Jun 2020, 06:18

Re: AutoHotkey v2.0-beta.1

Post by Aetzbarr » 27 Jul 2021, 03:04

It will be very helpful if there will be a thread dedicated to v2 beta updates (similar to this one https://www.autohotkey.com/boards/viewtopic.php?f=37&t=2120) or the changes will be documented here https://lexikos.github.io/v2/docs/ChangeLog.htm

User avatar
vvhitevvizard
Posts: 454
Joined: 25 Nov 2018, 10:15
Location: Russia

Re: AutoHotkey v2.0-beta.1

Post by vvhitevvizard » 27 Jul 2021, 03:16

Its been a while since AHK V2 became pretty much stable but people avoided it due to "alpha" monicker. :D
Congratulations to the AHK community!
swagfag wrote:
26 Jul 2021, 21:59
update... from what? u cant possibly expect a migration guide for any random past alpha version. read the changelog and update accordingly.
I believe the community do need migration guides listing literal examples. AHK v1 -> AHK v2 side by side. So that people could refer to those know-how examples instead of browsing changelogs.
Aetzbarr wrote:
27 Jul 2021, 03:04
It will be very helpful if there will be a thread dedicated to v2 beta updates (similar to this one https://www.autohotkey.com/boards/viewtopic.php?f=37&t=2120)
Agree! It was very convenient to have such a topic in bookmarks listing all the changes made in one place.
Last edited by vvhitevvizard on 27 Jul 2021, 03:29, edited 4 times in total.

User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: AutoHotkey v2.0-beta.1

Post by TheArkive » 27 Jul 2021, 03:23

For those wishing to understand the changes in AHK v2, may I recommend the following:
I'll be watching the help forums and doing my best to help explain the differences in AHK v2.

User avatar
vvhitevvizard
Posts: 454
Joined: 25 Nov 2018, 10:15
Location: Russia

Re: AutoHotkey v2.0-beta.1

Post by vvhitevvizard » 27 Jul 2021, 03:34

TheArkive wrote:
27 Jul 2021, 03:23
I'll be watching the help forums and doing my best to help explain the differences in AHK v2.
U've done great job converting lots of AHK v1 scripts recently! Please make sure u do not discard original AHK V1 scripts so that the community could compare the conversion steps required.

User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: AutoHotkey v2.0-beta.1

Post by TheArkive » 27 Jul 2021, 03:38

vvhitevvizard wrote:
27 Jul 2021, 03:34
TheArkive wrote:
27 Jul 2021, 03:23
I'll be watching the help forums and doing my best to help explain the differences in AHK v2.
U've done great job converting lots of AHK v1 scripts recently! Please make sure u do not discard original AHK V1 scripts so that the community could compare the conversion steps required.
Thanks! :D

I always reference/link/credit the original script where possible. The only example I can think of where I didn't do that is my version resource editing class. Mine was so fundamentally different from the VerResource.ahk lib file in Ahk2Exe that I did mention it as inspiration, but I didn't bother linking to it.

EDIT: I'll go through my scripts now and make sure all those links are still there and are active.

neogna2
Posts: 586
Joined: 15 Sep 2016, 15:44

Re: AutoHotkey v2.0-beta.1

Post by neogna2 » 27 Jul 2021, 09:10

Props to Lexikos for all the great work on AutoHotkey.
vvhitevvizard wrote:
27 Jul 2021, 03:16
I believe the community do need migration guides listing literal examples. AHK v1 -> AHK v2 side by side.
Yes.
It would also help to have a handy way to view the v2 and v1 documentation side by side with changes highlighted in the v2. Like a fancy diff tool. I don't know how difficult it would be to create a modified version of AutoHotkey.chm that shows two panes with the v2 and v1 text.
We can unpack AutoHotkey.chm locally to individual .html files
C:\Windows\hh.exe -decompile C:\outputfolder AutoHotkey.chm

AHK_user
Posts: 515
Joined: 04 Dec 2015, 14:52
Location: Belgium

Re: AutoHotkey v2.0-beta.1

Post by AHK_user » 30 Jul 2021, 05:29

Is there by any chance a syntax file of all the commands and functions available?

Something with similar data as used in the editor AHK Studio Master :
AHK-Studio-master\lib\Languages\ahk.xml

I can webscrape it from the helpfiles in not available :D, but if it already exists :D
ahk.xml
(45.35 KiB) Downloaded 295 times

Post Reply

Return to “Announcements”