SCAR Code:
program PotBot;
{.include SRL/SRL.scar}
//$$$$$$$$$$$$$$$$$$$$$$$\\
//$$$$$$$$ Setup $$$$$$$$\\
//$$$$$$$$$$$$$$$$$$$$$$$\\
var
i,DTM: Integer;
const
JadeColor = 8299987;
WindowColor = 2070783;
PotColor = 4903378;
LillyColor = 11912613;
procedure DeclareDTMS;
begin
try
DTM := DTMFromString('78DA638C666060B06200034606046085F2F F0' +
'301631490E18C5B0D583C9A08357144A88927D21C3B026A62 8184' +
'3D7E3500DE9A0880');
except
end;
end;
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\\
//$$$$$$$$ UNSECURE BANK $$$$$$$$\\
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\\
function DidWeFindColor : boolean;
begin
result := false;
If(FindColor(x,y,JadeColor,154,96,230,183))then result := true
end;
procedure LoadBank;
begin
if(DidWeFindColor= true)then
FindDTM(DTM,x,y,134,155,243,220)
Mouse(x,y,0,0,true);
end;
procedure ExitWindow;
begin
if(DidWeFindColor= false)then
wait(1500 + random(2000));
repeat
LoadBank;
until(isfkeydown(12))
Mouse(x,y,3,3,True);
end;
begin
SetupSRL;
DeclareDTMS;
repeat
OpenBank;
until(FindColor(x,y,WindowColor,183,34,335,46))
end.
Try that but your DTM still may not work as DTM's of the main screen are hard to make