Edit: Figured it out!
! Woo Woo!
I've got numbers 0-9 and I've made masks of them. Now I want to make something like
SCAR Code:
FindText(WatText:String;x1,y1,x2,y2:Integer;):Boolean;
Someone please explain the process?
Hmm is it really this easy?
SCAR Code:
function FindNPCChatText(txt: string; Action: fnct_ActionOptions): Boolean;
var
tx, ty, S: Integer;
begin
Result := False;
if txt = '' then
begin
srl_Warn('FindNPCChatText', 'txt is empty', warn_AllVersions);
Exit;
end;
S := CreateBitmapMaskFromText(txt, NPCChars);
if FindBitmapMaskTolerance(S, tx, ty, 9, 348, 523, 471, 50, 10) then
begin
Result := True;
case Action of
Move: MMouse(tx, ty + 2, Random(Length(txt) * 5), 4);
ClickLeft: Mouse(tx, ty + 2, Random(Length(txt) * 5), 4, True);
ClickRight: Mouse(tx, ty + 2, Random(Length(txt) * 5), 4, False);
end;
end;
FreeBitmap(S);
end;
What would I replace
CreateBitmapMaskFromText(txt, NPCChars);
NPCChars with? Where would I place my bitmaps?