How would I got about doing this? For example I'm using Aerolibs TMSObject to find an object containing 2 colors, but I don't know how to move a mouse only if both are found... the way I have it now it moves to either the first or second color. I'm trying to find a certain object between a bunch of other objects with similar colors. Any help would be greatly appreciated.
Code:
procedure funWithObjs();
var
obj_Chest : TMSObject;
Pnts : TPointArray;
begin // Wooden color // Silver color
obj_Chest.create('Chest', ['Open Bank chest','Bank chest'], [createCol(7373972, 5, 0.10, 0.96)], [createCol(3956855, 5, 0.19, 1.07)]);
if obj_Chest.findAll(10, MSCP, Pnts) then
begin
writeln('Found a possible '+toStr(length(Pnts))+ 'chests');
HumanMMouse(Pnts[1], 5, 5);
end;
end;
Sorry if this is a stupid question, it's got me stumped.