SRL Archive - S.M.A.R.T. General and Q/A.

Is it just me...


Infantry001

2007-12-04 15:41:15

…or is LoginPlayer not working for S.M.A.R.T?

Bobarkinator

2007-12-04 20:03:00

This is my modded one
{*******************************************************************************
procedure TypeSend(Text: String);
By: Mutant Squirrle
Description: Types text humanlike using random timeing on keys.
*******************************************************************************}

procedure TypeSend(Text: string);
var
i: Integer;
Shift: Boolean;
begin
{$IfDef SMART}
Shift:= True;
i:= 0;
SmartSendKeys(Text + Chr(10));
{$Else}
for i := 1 to Length(Text) do
begin
Shift := (Text[i] = ':') or (Text[i] = '!') or (Text[i] = '+') or
(Text[i] = '?') or (Text[i] = '<') or (Text[i] = '>') or
(Text[i] = '@') or (Text[i] = '#') or (Text[i] = '$') or
(Text[i] = '&') or (Text[i] = '%') or (Text[i] = '*');
if (Text[i] = '_') then
Text[i]:= ' ';
if (Shift) then
begin
KeyDown(VK_Shift);
Wait(5 + Random(20));
end;
TypeByte(GetKeyCode(Text[i]));
if (Shift) then
begin
KeyUp(VK_Shift);
Wait(5 + Random(20));
end;
Wait(50 + Random(120));
end;
Wait(200 + Random(500));
TypeByte(13);
{$EndIf}
end;

FrÕzÑ_§ÕµL

2007-12-04 22:02:21

LMAO its not just with SMART, its wit EVERYTHING! Take out
if FindRS then
ActivateClient;

In LoginPlayer procedure in login.scar

Bobarkinator

2007-12-04 22:14:48

From: Fr0zN_S0uL
LMAO its not just with SMART, its wit EVERYTHING! Take out
if FindRS then
ActivateClient;

In LoginPlayer procedure in login.scar


FindRS and ActivateClient are handled in SMART.scar

procedure ActivateClient;
begin
end;

procedure FindRS;
begin
end;

That makes them do nothing.

FrÕzÑ_§ÕµL

2007-12-04 22:56:50

Exactly! It's not just SMART that has the problem! Very often it will not Login properly or at all to IE or Firefox either!

Edit: Sorry didn't properly read what you wrote. Your right then :p

Infantry001

2007-12-04 23:07:37

But Bob, it is actually LoginPlayer that doesn't work. However, in SMART, LoginPlayer doesn't even click ExistingUser. Either I screwed up, or something went wacko with SMART or RS. This was never a problem before. (And btw, SMART gives me no error message, as far as I can see)

@Fr0zN (gosh ur name is hard to type :P) - Logging in works fine for me in IE/Firefox.

Bobarkinator

2007-12-05 17:37:02

From: Infintry001
But Bob, it is actually LoginPlayer that doesn't work. However, in SMART, LoginPlayer doesn't even click ExistingUser. Either I screwed up, or something went wacko with SMART or RS. This was never a problem before. (And btw, SMART gives me no error message, as far as I can see)

@Fr0zN (gosh ur name is hard to type :P) - Logging in works fine for me in IE/Firefox.


I know. Is it that it will type in both the username and password than just sit there? If that is so then my modded typesend will work. Otherwise post.

Infantry001

2007-12-05 19:57:38

Nope. Right after SRL sets up, it goes into LoginPlayer. It doesn't type in anything. It deosn't even click "Existing User"! But… this is where loginPlayer fails to work.

Oh, wait, nevermind. SMART just started working again… :confused: lol

But actually, there was nothing wrong with logging into Runescape (using the script, of course) via the official client. It was just SMART. Kinda weird.

Harry

2007-12-05 20:00:17

Use

procedure TypeSend(Text: string);
var
i: Integer;
Shift: Boolean;
begin
smartsendkeys(text + chr(10));
end;
in your text.scar.

Bobarkinator

2007-12-05 22:42:58

Did you include SMART.scar?

jhildy

2007-12-06 08:37:38

it works fine for me.

n3ss3s

2007-12-06 09:04:06

Did you include SMART.scar?


I second, plus did you remember to include it first?

It needs to be like
{.include SRL/SRL/Misc/Smart.scar}
{.include SRL/SRL.scar}

Infantry001

2007-12-06 20:22:33

Lol did you guys read? The script had already worked w/ SMART several times before. It just happened to happen a little bit ago. But it is fixed now, for some strange reason…

TheGuyWhoGotOn

2007-12-15 09:55:52

I've only had this problem a few times not using SMART. Now my scripts seem to only work with SMART…Maybe did you change something? I suggest starting from scratch and read one of the tutorials. Just fix SRL.scar, include SMART and done.

Well…at least that's all I had to do.