Page 1 of 1

A_EscapeChar and A_Delimiter

Posted: 10 Nov 2015, 00:08
by MasterFocus
A quick online search didn't give me any results on this.

We can change these settings by using #EscapeChar and #Delimiter, but there are no built-in variables we can use to retrieve their values.
This would be specially interesting for cases where the escape char is changed, causing unwanted side-effects if strings containing "`n" are used.

This happens with many other settings. Example: all SetXXXDelay commands have their equivalent A_XXXDelay variable.

Re: A_EscapeChar and A_Delimiter

Posted: 10 Nov 2015, 00:33
by guest3456
for reference, iirc those commands are removed from AHKv2, so maybe they can't even be changed in there

Re: A_EscapeChar and A_Delimiter

Posted: 10 Nov 2015, 02:52
by lexikos
What would you use them for? The escape chars and delimiters are fully handled long before you could ever retrieve the variable's value (with the exception of Transform Deref).

Re: A_EscapeChar and A_Delimiter

Posted: 10 Nov 2015, 09:53
by MasterFocus
@guest3456: I didn't know about that. Thanks for pointing that out.
lexikos wrote:[...] are fully handled long before you could ever retrieve the variable's value [...]
Despite not knowing how some stuff work internally, I actually though that could be the case... but I figured it wouldn't hurt asking.
I had thought of some use cases, but I didn't realize they're flawed since those are directives, not commands. :facepalm:
Thanks for the explanation. :)