SRL Archive - OSR Help

How do I logout failproof?


bevardis

2011-08-24 11:41:09

Logout; seems to fail for me. I want to logout 100% every time.
I want a snippet or a tip, something that would work.
My mouse speed is 5-10.
I tried
While (LoggedIn) do Logout; Wait(RandomRange(500,900));
Logout;Logout;Logout;

It clicks the button at the top right, then somewhy inventory interface returns, as if it was pressed with an F* inventory hotkey, and the smart mouse just stays at the button on top right of the screen. Sometimes it just logs out as it should. Any help appreciated.

Main

2011-08-24 11:49:41

What do you mean? like it doesn't always logout?

Brandon

2011-08-24 12:07:18

Reflection2:


Funciton LogoutFully: Boolean;
var
Child, Exit: TInterfaceChild;
begin
Exit:= R_GetInterfaceChild(548, 181);

Repeat
R_ClickInterface(Exit, 1);
R_WaitInterfaceOpen(182, 3000);
Until(R_ValidInterface(182));

R_GetInterfaceChild(182, 6);
while(R_ValidInterface(182)) do
begin
R_ClickInterface(Child, 1);
R_WaitInterfaceClose(182, 3000);
if(R_LoginScreen) then
begin
Result:= true;
break;
end;
end;
end;

Function LogoutLobby: Boolean;
var
Child, Exit: TInterfaceChild;
begin
Exit:= R_GetInterfaceChild(548, 181);

Repeat
R_ClickInterface(Exit, 1);
R_WaitInterfaceOpen(182, 3000);
Until(R_ValidInterface(182));

R_GetInterfaceChild(182, 13);
while(R_ValidInterface(182)) do
begin
R_ClickInterface(Child, 1);
R_WaitInterfaceClose(182, 3000);
if(R_LobbyScreen) then
begin
Result:= true;
break;
end;
end;
end;

bevardis

2011-08-24 14:32:38

From: ggzz
Reflection2:


Funciton LogoutFully: Boolean;
var
Child, Exit: TInterfaceChild;
begin
Exit:= R_GetInterfaceChild(548, 181);

Repeat
R_ClickInterface(Exit, 1);
R_WaitInterfaceOpen(182, 3000);
Until(R_ValidInterface(182));

R_GetInterfaceChild(182, 6);
while(R_ValidInterface(182)) do
begin
R_ClickInterface(Child, 1);
R_WaitInterfaceClose(182, 3000);
if(R_LoginScreen) then
begin
Result:= true;
break;
end;
end;
end;

Function LogoutLobby: Boolean;
var
Child, Exit: TInterfaceChild;
begin
Exit:= R_GetInterfaceChild(548, 181);

Repeat
R_ClickInterface(Exit, 1);
R_WaitInterfaceOpen(182, 3000);
Until(R_ValidInterface(182));

R_GetInterfaceChild(182, 13);
while(R_ValidInterface(182)) do
begin
R_ClickInterface(Child, 1);
R_WaitInterfaceClose(182, 3000);
if(R_LobbyScreen) then
begin
Result:= true;
break;
end;
end;
end;

I'll try, thanks.

From: Main
What do you mean? like it doesn't always logout?


Yes

TomTuff

2011-08-24 15:20:51

function LogoutEx: Boolean;
begin
CloseBank;
CloseWindow;
Result := Logout;
end;

Should work.

Coh3n

2011-08-24 18:01:49

Sounds to me like he's saying when the logout tab is clicked (i.e. the X in the top right) another gametab is opened right after. I'm not sure what would cause this, but Logout(); is working fine for me. :unsure:

weequ

2011-08-24 18:52:42

Sometime logout misclicked the logout button in Harri's account creator and the script failed or something because of that. I mean it clicked below or above the logout button.

Coh3n

2011-08-24 19:31:23

From: weequ
Sometime logout misclicked the logout button in Harri's account creator and the script failed or something because of that. I mean it clicked below or above the logout button.
Recently? That was fixed a long time ago as far as I know.

bevardis

2011-08-25 04:51:25

From: Coh3n
Sounds to me like he's saying when the logout tab is clicked (i.e. the X in the top right) another gametab is opened right after. I'm not sure what would cause this, but Logout(); is working fine for me. :unsure:


That's what I meant.

From: TomTuff
Simba Code:

function LogoutEx: Boolean;
begin
CloseBank;
CloseWindow;
Result := Logout;
end;


Should work.


Strange, this does work, even though I'm not using a bank, but I used CloseWindow; myself. Well thanks.:sasmokin:

Heavenzeyez1

2011-08-25 04:57:44

From: Coh3n
Recently? That was fixed a long time ago as far as I know.


Yes, I've had it recently, like 3 days ago? still happens. Then it somehow sorts out after 10-20 secs to click the right place.

~Eerik.

Coh3n

2011-08-25 20:42:51

From: Heavenzeyez1
Yes, I've had it recently, like 3 days ago? still happens. Then it somehow sorts out after 10-20 secs to click the right place.

~Eerik.
Ah okay, we'll have to look into it then. Thanks.