Found a bug on ahk?

Get help with using AutoHotkey and its commands and hotkeys
kyuuuri
Posts: 118
Joined: 09 Jan 2016, 19:20

Found a bug on ahk?

13 Jan 2019, 23:28

Hello, i have the following code:

Code: Select all

asd =
(
ReadIni()
{
	linearray := StrSplit(asd123, "`r`n")
	return
}
)
and it gives an error: "Missing close-quote" on linearray:= declaration line.
If i do the following:

Code: Select all

asd =
(
ReadIni()
{
	;linearray := StrSplit(asd123, "`r`n")
	return
}
)
it gives an error: "Line text: ") Error: This line does not contain a recognized action.

I don't know what to do, it's weeeeeeeeeeeeird.

Seems like instead of taking that as a simple string inside a function, it is taken as a `r`n
swagfag
Posts: 1811
Joined: 11 Jan 2017, 17:59

Re: Found a bug on ahk?

14 Jan 2019, 00:46

this runs just fine on the current version. well, except for `r`n resulting in 2 new lines. u have to escape the backticks, or enable the continuation section's automatic backtick escape mode:

Code: Select all

str =
(`

...

)

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Poedre7 and 180 guests