SRL Archive - SRL Archives

Closebank


timmyboy

2006-04-30 16:58:03

Couldn't find this in the "Bank.scar" so…
This function closes the bank screen and returns true if it was done properly.

Any suggestions or comments appreaciated. Currently working on a very l33t function:D

{*******************************************************************************
CloseBank : Boolean;
by:Timmyboy1234
Description: Closes bankscreen. Returns true if closed.
*******************************************************************************}
function CloseBank: Boolean;
begin
if findcolor(x,y,8421504,413,34,495,50) then
mouse(x,y,1,1,true);
Result:=True;
end;

Dankness

2006-04-30 18:47:58

its not in bank.scar because CloseWindow is a universal window closer therefore we dont need a specific bank closer. sorry.

timmyboy

2006-04-30 19:16:11

Damn:p
Oh well.