@Antidote
I almost forgot.. must include for the string code to work.
#include <Math.au3>
The string manipulation code I believe isn't perfect but it fixes most of the problems and it still also relies to the captured image. BUT I have another idea and I'm not sure if it'll work.. Why not put tesseract in a loop until it captures an image with string length of 7 for both elix and gold before passing it through the string manipulation code? I hope it doesn't slow down the search process.. But with all the measures we have done, I think it may be accurate enough to run while we try figure out to use another more accurate alternatives to tesseract reading.
