Laszlo's Eval() functions from the thread i linked does the job. about midway through he posted updated ones using RegEx
http://www.autohotkey.com/forum/post-107547.html#107547
this code all works, just include the two Eval funcs above
Code:
;file.ini
[section]
my_var1=myheight-100
my_var2=800-myheight
my_var3=otherVar+9
Code:
myheight := 500
otherVar := 10
IniRead, myvar1, file.ini, section, my_var1
IniRead, myvar2, file.ini, section, my_var2
IniRead, myvar3, file.ini, section, my_var3
MsgBox, % Eval(myvar1) ;// "myheight-100" = 400
MsgBox, % Eval(myvar2) ;// "800-myheight" = 300
MsgBox, % Eval(myvar3) ;// "otherVar+9" = 19
MsgBox, % Eval("otherVar+myheight")
return