Element17
2014-07-06 13:44:26
I run this
and it never prints to the debug box.
however this does print
I guessing the colors need to be updated
if (depositBox.isOpen()) then
writeln('It''s open!');
and it never prints to the debug box.
however this does print
function statDepositBox(): boolean;
var
x, y: integer;
b, b1: TBox;
TPA, TPA1: TPointArray;
begin
if not isLoggedIn() then
exit;
//b := IntToBox(168, 68, 420, 78);
b1 := IntToBox(455, 65, 467, 78);
if findColorsTolerance(x, y, TPA, 395622, b1, 5, colorSetting(2, 0.18, 1.06)) then // red box top left
//findColorsTolerance(x, y, TPA1, 628150, b, 14, colorSetting(2, 0.03, 0.68)) then //yellow text
begin
//writeln('Found both colors!');
writeln('DepositBox is open');
end;
end; Depositbox is openI guessing the colors need to be updated
