Page 3 of 3

Re: AutoHotkey v2.0-beta.1

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

Code: Select all

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

Re: AutoHotkey v2.0-beta.1

Posted: 11 Sep 2021, 17:20
by Hellbent
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?

Re: AutoHotkey v2.0-beta.1

Posted: 11 Sep 2021, 17:59
by safetycar
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.'.

Re: AutoHotkey v2.0-beta.1

Posted: 11 Sep 2021, 19:48
by Hellbent
@safetycar

Thank you :thumbup:

Re: AutoHotkey v2.0-beta.1

Posted: 08 Oct 2021, 03:16
by sumon
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.

Re: AutoHotkey v2.0-beta.1

Posted: 17 Oct 2021, 19:51
by buliasz
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")

Re: AutoHotkey v2.0-beta.1

Posted: 18 Oct 2021, 08:49
by safetycar
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

Re: AutoHotkey v2.0-beta.1

Posted: 18 Oct 2021, 11:00
by buliasz
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.