SRL Archive - SRL Archives

Procedure CWindowSD ("X")


QQu

2006-06-27 20:43:55

Hi everyone, not sure if this works, have not tested yet.


// ——- Bitmap of New Close-Window "X" ——————-
CWindow := BitmapFromString(1, 19, 'z78DA75C4B111002008' +
'03C099104848099EFBAF646DE117DF26948F75491A194FED5A784' +
'F0EFABBD8706E06F2BB03191921E705C54B195E');
// —————————————————–



Procedure CWindowSD;
begin
if (FindBitmapToleranceIn(CWindow, x, y, 401, 4, 514, 5)) then
Mouse(x + 6, y + 2, 2, 1, True);
end;



Cheers,
Surajd ;)

WhiteShadow

2006-06-27 23:24:56

Nice contribution. This is for only stores right?

XxKanexX

2006-06-28 00:19:42

No, White. It's for Trades and everything.

Suradj, Surely you can make that bitmap way, way smaller! And the closewindow procedure in SRL was based on co-ordinates, so i'm sure it'll still work. (Just change the co-ords.)

WhiteShadow

2006-06-28 00:24:39

From: XxKanexX
No, White. It's for Trades and everything.

Suradj, Surely you can make that bitmap way, way smaller! And the closewindow procedure in SRL was based on co-ordinates, so i'm sure it'll still work. (Just change the co-ords.)



XxKanexX

2006-06-28 00:34:31

From: WhiteShadow

Well, almost everything ;)

I don't like the Cross in the game, it seems that you have to click hard and make sure your mouse is still for it to close.. ;\ Just seems that close window was much easier.

QQu

2006-06-28 03:21:01

Thanks for the comments,

Kane, your request for a much, much smaller Bitmap has been Granted! :D