SRL Archive - SRL Archives

ExitWindow;


_ChArMz

2006-08-27 20:02:16

[PHP]Procedure ExitWindow;
Var
Close: Integer;
Begin
Close := BitmapFromString(10, 11, 'z78DA3330000243033069E66' +
'4EA62628C9F3440528F4912AF0BBF38015913537313430889DF3D' +
'505D48EA3149F274E13201971A533753236367641297BD982A89D' +
'185DF04FC6A70C96211B7347131B6C42409B807872E5C260000D9' +
'5685F1');
If(FindBitmapToleranceIn(Close, x, y, 466, 29, 501, 56, 10))then
Begin
MMouse(x, y, 0, 0);
Wait(100+Random(50));
GetMousePos(x, y);
Wait(100+Random(50));
Mouse(x, y, 3, 3, True);
End;
FreeBitmap(Close);
End;[/PHP]

Closes, shop, bank, or trades :P

~ChArMz

Cheesehunk

2006-08-27 20:33:42

Nice, but could't we just use something without Bitmaps to reduce lag, like this:
Procedure ExitWindow;
begin
MouseBox(476,30,499,52,1);
wait(100+random(100));
end;

repeat
ExitWindow;
until not (Bankscreen, ShopS...);

Do the screens float or something?

_ChArMz

2006-08-27 20:54:23

From: Cheesehunk
Nice, but could't we just use something without Bitmaps to reduce lag, like this:
Procedure ExitWindow;
begin
MouseBox(476,30,499,52,1);
wait(100+random(100));
end;

repeat
ExitWindow;
until not (Bankscreen, ShopS...);

Do the screens float or something?


I just thought banks, trades, and shops had diff coors but i could be wrong -.-

Cheesehunk

2006-08-27 21:07:27

From: _ChArMz
I just thought banks, trades, and shops had diff coors but i could be wrong -.-

They do, but we could use different closers for them. I may be mis-understanding you..