AutoHotkey v2.0-beta.1

Community news and information about new or upcoming versions of AutoHotkey
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: AutoHotkey v2.0-beta.1

Post by HotKeyIt » 11 Sep 2021, 15:48

No, both can be used:

Code: Select all

MsgBox "'String'"
MSgBox '"String"'

User avatar
Hellbent
Posts: 2102
Joined: 23 Sep 2017, 13:34

Re: AutoHotkey v2.0-beta.1

Post by Hellbent » 11 Sep 2021, 17:20

HotKeyIt wrote:
11 Sep 2021, 15:48
No, both can be used:

Code: Select all

MsgBox "'String'"
MSgBox '"String"'
so

Code: Select all

Var := "Some String"
;and
Var := 'Some String'
are the same?

safetycar
Posts: 435
Joined: 12 Aug 2017, 04:27

Re: AutoHotkey v2.0-beta.1

Post by safetycar » 11 Sep 2021, 17:59

Hellbent wrote:
11 Sep 2021, 17:20
are the same?
In the words of v2 documentation: (https://lexikos.github.io/v2/docs/misc/EscapeChar.htm)
Single-quote marks (') and double-quote marks (") function identically, except that a string enclosed in single-quote marks can contain literal double-quote marks and vice versa. Therefore, to include an actual quote mark inside a literal string, escape the quote mark or enclose the string in the opposite type of quote mark. For example: Var := "The color `"red`" was found." or Var := 'The color "red" was found.'.

User avatar
Hellbent
Posts: 2102
Joined: 23 Sep 2017, 13:34

Re: AutoHotkey v2.0-beta.1

Post by Hellbent » 11 Sep 2021, 19:48

@safetycar

Thank you :thumbup:

User avatar
sumon
Posts: 38
Joined: 01 Oct 2013, 14:05
Location: Stockholm, Sweden

Re: AutoHotkey v2.0-beta.1

Post by sumon » 08 Oct 2021, 03:16

lexikos wrote:
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
Wow, great to see this progress! :happybday:

I looked through the documentation again to remind me of the differences between v1 and v2, and it'll be interesting to see how new people approaching AHK will be able to dive into a more stable v2 now. I'll definitely take a good look at it.

buliasz
Posts: 26
Joined: 10 Oct 2016, 14:31
Contact:

Re: AutoHotkey v2.0-beta.1

Post by buliasz » 17 Oct 2021, 19:51

I'm not sure if the beta.2 is official, but it is available at the download page: https://www.autohotkey.com/download/2.0/?C=M;O=D
Anyway there's a bug in loop - until routines for example this loop will never finish:

Code: Select all

	loop {
		testFlag := true
		MsgBox(testFlag " " (testFlag ? "true" : "false"))
	} until (testFlag)
	MsgBox("Loop finished")

safetycar
Posts: 435
Joined: 12 Aug 2017, 04:27

Re: AutoHotkey v2.0-beta.1

Post by safetycar » 18 Oct 2021, 08:49

buliasz wrote:
17 Oct 2021, 19:51
I'm not sure if the beta.2 is official, but it is available at the download page: https://www.autohotkey.com/download/2.0/?C=M;O=D
Anyway there's a bug in loop - until routines for example this loop will never finish:
Beta 2 is official: viewtopic.php?f=24&t=95688
And some people is already discussing a bug related to loop until the bugs section: viewtopic.php?f=14&t=95703

buliasz
Posts: 26
Joined: 10 Oct 2016, 14:31
Contact:

Re: AutoHotkey v2.0-beta.1

Post by buliasz » 18 Oct 2021, 11:00

safetycar wrote:
18 Oct 2021, 08:49
And some people is already discussing a bug related to loop until the bugs section: viewtopic.php?f=14&t=95703
Thank you, I haven't been here for a while and didn't even know such forum was created. Sorry for posting in a wrong topic.

Post Reply

Return to “Announcements”