Code: Select all
MsgBox "'String'"
MSgBox '"String"'
Code: Select all
MsgBox "'String'"
MSgBox '"String"'
soHotKeyIt wrote: ↑11 Sep 2021, 15:48No, both can be used:Code: Select all
MsgBox "'String'" MSgBox '"String"'
Code: Select all
Var := "Some String"
;and
Var := 'Some String'
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.'.
Wow, great to see this progress!lexikos wrote: ↑24 Jul 2021, 19:28AutoHotkey 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
Code: Select all
loop {
testFlag := true
MsgBox(testFlag " " (testFlag ? "true" : "false"))
} until (testFlag)
MsgBox("Loop finished")
Beta 2 is official: viewtopic.php?f=24&t=95688buliasz wrote: ↑17 Oct 2021, 19:51I'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:
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.safetycar wrote: ↑18 Oct 2021, 08:49And some people is already discussing a bug related to loop until the bugs section: viewtopic.php?f=14&t=95703
Users browsing this forum: No registered users and 4 guests