Hi,
I am working on a custom system which clicks a fishspot. I got the detection working, but it seems to be unable to recognzie the uptext altrough the contrast with the background is quite ok.
I used findObjMulti() before this, which uses the same kind of uptext checking without a problem.
Simba Code:
function SeekFishingSpot(var x, y : integer) : boolean;
var
ColToldSpeed, I : integer;
TPA : TpointArray;
ATPA : T2DPointArray;
begin
ColToldSpeed := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(1.3, 1.49);
FindColorsSpiralTolerance(MSCX, MSCY, TPA, 15056587, MSX1, MSY1, MSX2, MSY2, 12);
ATPA := TPAtoATPAEx(TPA, 25, 25);
for I:=Low(ATPA) to High(ATPA) do
begin
MMouse(MiddleTPA(ATPA[I]).X, MiddleTPA(ATPA[I]).Y, 10, 10);
WaitCustom(false);
WriteLn(GetUpText + ' | ' + rs_GetUpText + ' | ' + P07_GetUpText );
if WaitUptext(ToolName, RandomRange(500, 750)) then
begin
WaitCustom(false);
ClickMouse2(Mouse_right);
WaitCustom(false);
if ChooseOption(OptionName) then
begin
Result := true;
exit;
end else
begin
WriteLn('This spot does not support our fishing method :L.')
end;
end;
end;
end;
When debugging the uptext, i either get nothing or gibberish.
I hope someone could help me with this,
Thanks in advance.