Escape quotes Topic is solved

Discuss the future of the AutoHotkey language
User avatar
bichlepa
Posts: 183
Joined: 15 Aug 2014, 06:44
Location: Germany
Contact:

Escape quotes

18 Jan 2017, 13:58

Currently if we want a string to contain quotes, we need to enter them twice in a string:
string:="string with ""quotes"""
I know, in V2 we can write this:
string:='string with "quotes"'
But why don't we use the escape character ` to escape a quote like this:
string:="string with `"quotes`"" :?:
Scripting is too complicated? Try AutoHotFlow, the graphical automation tool! Written in AutoHotkey.
guest3456
Posts: 3463
Joined: 09 Oct 2013, 10:31

Re: Escape quotes

18 Jan 2017, 14:19

did you 1. read the docs or 2. try the code?

User avatar
bichlepa
Posts: 183
Joined: 15 Aug 2014, 06:44
Location: Germany
Contact:

Re: Escape quotes

18 Jan 2017, 14:30

Oh. I should have tried it before. :oops:
I just read the v2-thoughts and v2-changes. There it is not mentioned that the quotes can be escaped inside a string.
Scripting is too complicated? Try AutoHotFlow, the graphical automation tool! Written in AutoHotkey.
guest3456
Posts: 3463
Joined: 09 Oct 2013, 10:31

Re: Escape quotes  Topic is solved

18 Jan 2017, 16:50

it is mentioned in v2-changes in the first line under "Expressions".

and its mentioned in the v2 docs under the Variables and Expressions page


Return to “AutoHotkey Development”

Who is online

Users browsing this forum: No registered users and 59 guests