SRL Archive - SRL Bugs

FixBank


XcanadamanX

2009-04-17 05:06:59

When there is no scroll bar at the side it doesn't like to work since the colour it is trying to find is not there. This is Rev #32. It works fine if there is a scroll bar but just holds the mouse at the one point if there is no scroll bar. Just thought someone would like to know.

Xcan

edit: I changed FixBank to
procedure FixBank;
begin
if BankScreen then
if (GetColor(489, 101) <> 1316634) and (GetColor(489,100) = 657930) then
begin
Mouse(485, 102, 7, 10, True);
while GetColor(489, 101) <> 1316634 do
Wait(20);
Wait(100 + Random(200));
end;
end;
and it was working for me.

Nava2

2009-04-18 16:37:29

Wouldn't the second GetColor be suffice?

Or is the first necessary?

XcanadamanX

2009-04-18 20:31:45

the first is to check if the scroll bar is at the top. second checks if there is a scroll bar

Nava2

2009-04-19 00:24:33

So, wouldn't checking for the scroll bar at the top be enough? :)

XcanadamanX

2009-04-19 00:27:18

no because it is checking if the colour doesnt equal 1316634 which is always unless there is actually a scroll bar and it's at the top.

Becks

2009-05-16 23:15:33

sorry dumb question but what file do i place this in.

XcanadamanX

2009-05-16 23:18:04

if you use the open svn then a updated fix bank will be there or else in bank.scar

footballjds

2009-05-17 00:17:40

add a failsafe in the loop please

XcanadamanX

2009-05-17 00:26:07

that is directly from bank.scar but with
 and (GetColor(489,100) = 657930
added.

footballjds

2009-05-17 00:35:39

exactly… bank.scar's has no failsafes and thus is why it screws up scripts :D