Well, I have a script with 14 bitmaps of questions and answers on them, all declared in an array:
SCAR Code:
var
Q : Array [1..14] of Integer;
A : Array [1..14] of String;
C : Integer;
After that I declare the bitmaps.
My procedure to find the Q and the appropiate A is as follows:
SCAR Code:
procedure FindQA;
var
I,X,Y : Integer;
Ans : String;
W : Integer;
begin
for i:=1 to 14 do
begin
if FindBitmap(Q[i],x,y] then
begin
W:= i;
break;
end;
end;
Ans := A[i];
Sendkeys(Ans+chr(13));
end;
.
Scar says:
Line 240: [Error] (240:23): comma (',') expected in script C:\Program Files\SCAR 3.15\Scripts\QABot.scar
What do I do wrong?