I can’t figure out how to use a variable as a math expression. The following code won’t return the expected solution but doesnt throw any errors, instead it will just output the contents of the Q variable again in A.
Q = 7+5=
StringReplace, Q, Q, =,, 1
A := Q
Using %Q% or Q = %Q% doesn’t work. And running MsgBox, %A% after it will just return “7+5”.
Please help as I’m pretty new to AutoHotKey 🙂
Check this out:
http://www.autohotkey.com/community/viewtopic.php?t=17058
This should do it though: