What's wrong with this line?
Code:
IniRead, x, % A_ScriptDir . "PThud.ini" , LabelPositions, x%A_Index%
I'm trying to read a variable (x1 or x2 or ...) from a ini file located in the A_scriptDir....
I use
Code:
If !FileExist(A_ScriptDir . "PThud.ini")
earlier in the script and it works great, so I'm confuzed...
TIA!
Edit: Solved!
Missing the "\" in the file path (A_ScriptDir doesn't include it)
Corrected:
Code:
If !FileExist(A_ScriptDir . "\PThud.ini")
IniRead, x, % A_ScriptDir . "\PThud.ini" , LabelPositions, x%A_Index%