IniRead (AHK v2): spaces as default value
Posted: 21 Sep 2018, 15:48
In AHK v2 it appears that if you specify a default value of space or multiple spaces, a blank string is returned.
Code: Select all
;tested on AHK v2.0-a099
vPath := ""
MsgBox("[" IniRead(vPath, "Section", "NonExistentKey", A_Space) "]") ;[]
MsgBox("[" IniRead(vPath, "Section", "NonExistentKey", A_Space A_Space A_Space) "]") ;[]
MsgBox("[" IniRead(vPath, "Section", "NonExistentKey", "default") "]") ;[default]