SCAR Code:
function GetScrollLvl : integer;
var
xxx : integer;
begin
FindColor( xxx, Result, 5531254, 468, 75, 468, 253);
end;
function FindDTMInBank(DTM : integer; var xcx, ycy, yOfScroll : integer) : boolean;
var
cx, cy : integer;
begin
if not(BankScreen) then EXIT;
if FindDTM(dtm, xcx, ycy, 21, 58, 467, 287) then
begin
yOfScroll:= GetSCrollLvl;
Result := True;
EXIT;
end;
if GetColor(475, 75) = 1777699 then
Mouse(475, 79, 3, 3, True);
MMouse(476, 280, 3, 3);
GetMousePos(cx, cy);
HoldMouse(cx + Random(1), cy + Random(1), True);
repeat
if FindDTM(dtm, xcx, ycy, 21, 58, 467, 287) then BREAK;
wait(1);
until not(GetColor(477, 271) = 1777699) or not(LoggedIn);
ReleaseMouse(cx, cy, True);
yOfScroll:= GetSCrollLvl;
Result := not(GetColor(477, 271) = 1777699);
end;
usage: FindDTMInBank(LogDTM, x, y, YOfScrollBar);