AHK_H v2 - Double quotes in arguments
Posted: 14 Aug 2016, 11:45
So in AHKv2 double quotes are completely removed from strings passed as arguments.
Single quotes can be escaped but not double quotes.
There's a weird issue however. If we add a escaped grave (`) to the beginning of the string all the double quotes will pass through but it works only for the first argument.
If we try the following
We get
Which part of that is a bug?
Shouldn't AHK just accept escaped double quotes in arguments as well, just like it accepts single quotes?
Single quotes can be escaped but not double quotes.
There's a weird issue however. If we add a escaped grave (`) to the beginning of the string all the double quotes will pass through but it works only for the first argument.
If we try the following
Code: Select all
newThread := '
(
MsgBox(A_Args[1] . " " . A_Args[2])
)'
ExeThread(newThread, '``"STRING1" ``"STRING2"')
Sleep 3000
Which part of that is a bug?
Shouldn't AHK just accept escaped double quotes in arguments as well, just like it accepts single quotes?