In my ahk file I have:
Code: Select all
configPath := "config.ini"
IniRead, exitScript, %configPath%, Bindings, exitScript, ERROR
IniRead, button, %configPath%, Bindings, button, ERROR
IniRead, loopCount, %configPath%, Settings, loopCount, ERROR
MsgBox, % "exitScript = " . exitScript . "`n"
. "button = " . button . "`n"
. "loopCount = " . loopCount
Code: Select all
[Bindings]
exitScript=Esc
button=!+b
[Settings]
loopCount=5
Code: Select all
exitScript = ERROR
button = ERROR
loopCount = 5
However, if I change my ini file to:
Code: Select all
[Bindings]
exitScript=Esc
button=!+b
[Settings]
loopCount=5
Code: Select all
exitScript = Esc
button = !+b
loopCount = 5
This does not seem like something that should be happening, and I have used a similar setup in other scripts without encountering this problem. Does anyone know what might be happening?