SRL Archive - SRL Bugs

Logout


Geo

2011-06-06 21:13:10

Not sure if anyone else if having a problem with the logout function missing the button sometimes. if you are change Line 355 in Login.scar to the bottom code box.


{*******************************************************************************
function Logout: Boolean;
By: Starblaster100, Raymond, IceFire908, & Tarajunky
Description: Logs you all the way out from ingame.
*******************************************************************************}
function Logout: Boolean;
var
x, y, c, i: Integer;
begin
Result := (not (LoggedIn));
if (Result) then
Exit;
if (SRL_Procs[srl_OnLogOut] <> nil) then
SRL_Procs[srl_OnLogOut]();
if (not (GameTab(tab_LogOut))) then
Exit;
Wait(200 + Random(100));
while (LoggedIn) and (c < 10) do
begin
Inc(c);
if(FindText(x, y, 'ogin', UpChars, MIX1, MIY1, MIX2, MIY2))then
begin
MouseBox(570, 393, 712, 417, 1); // <--
for i := 0 to 10 do
begin
Wait(1000);
if (not (LoggedIn)) then
begin
Result := True;
Exit;
end;
end;
end else
if(FindText(x, y, 'lick', UpChars, MIX1, MIY1, MIX2, MIY2))then
begin
MouseBox(579, 367, 699, 386, 1);
for i := 0 to 10 do
begin
Wait(1000);
if not(LoggedIn) then
begin
Result := True;
Exit;
end;
end;
end
end;
end;
changed

MouseBox(573, 403, 702, 429, 1);
to

MouseBox(570, 393, 712, 417, 1);

Harry

2011-06-06 21:29:07

The box sometimes misses because the position is different on the Unsigned client vs Signed, and also changes if you have Facebook login enabled. It corrects itself however, so it's not a huge issue - if it misclicks, it tries again.

Geo

2011-06-06 21:32:42

From: Harry
The box sometimes misses because the position is different on the Unsigned client vs Signed, and also changes if you have Facebook login enabled. It corrects itself however, so it's not a huge issue - if it misclicks, it tries again.


Ah, Thanks for explaining. :redface:

cycrosism

2011-06-06 23:59:10

Yes I also saw it miss the button while I was running a rune essence miner (It was switching players)


See the red dot?

Perhaps a bitmap or a DTM will help it find the button accurately in all circumstances

Coh3n

2011-06-07 08:14:36

I always thought it looked for the text…

Apparently not. :huh: