So i have started to get into this private server, but there is this random. Here's a pic:

So, since the buttons that you need to press are in the same spot every time, i figured.. "I can use the trim and GetTextAtEx functions to return just the orange text, or the button that you need to click on. So, my code so far is this:
SCAR Code:
Function SolveRandom:String;
Var cx,cy, i: LongInt; tmpResult: String;
Begin
cx := 243;
cy := 116;
tmpResult := GetTextAtEx(cx, cy, 100, NPCChars, True, False, 0, 5, 45311, 7, True, tr_SmallLetters);
if (Trim(tmpResult) = '') then
for i := 1 to 31 do
begin
tmpResult := GetTextAtEx(cx + i , cy , 100, NPCChars, False, True, 0, 5, 45311, 7, True, tr_SmallLetters);
if (Trim(tmpResult) <> '') then
Exit;
end;
if (not (Trim(tmpResult) = '')) then
Result := (Trim(GetTextAtEx(cx, cy, 100, NPCChars, False, True, 0, 5, 45311, 7, True, tr_SmallLetters)));
Writeln('You have to click the ' +(Result)+' button');
end;
But every single time i run it, it leaves out a few letters, like in another one i got, my result was:
SCAR Code:
You have to click the farmng button
Its missing the "I". This one isnt so bad, but some of the others are missing 3-4 key letters.
Help is greatly appreciated.
-Itschris917