SRL Archive - RS Scripts

Auto Login (first script)


bustinthejus

2007-03-14 00:27:48

It works, but one problem is that I have to click on the runescape window, before the script starts. And I only give you 1 second to click the runescape window. I need a way to fix it plz.

program AutoLogin;
{.include SRL/SRL.scar}


const
username=''; //username here
password=''; //password here

procedure ClickExistingUser;
begin

movemouse(449+random(50),277+random(10));
wait(200+random(200));
clickmouse(449+random(10),277+random(10),true);
end;

procedure ClickLogin;
begin
movemouse(274+random(50),318+random(10));
wait(200+random(200));
clickmouse(274+random(50),318+random(10),true);
end;

begin
wait (1000)
ClickExistingUser;
wait(500+random(100));
TypeSend(username);
wait(500+random(100));
TypeSend(password);
ClickLogin;


end.

diamondhero6

2007-03-15 22:53:50

ok first have it start on the main page and second do not have it cordinate based, i am working on one now i will post links on tuts on how to do it and you can look at mine

smithspsbob

2007-03-16 21:21:48

You could SRL-ize it… That would be a good learning experience.

bustinthejus

2007-03-16 23:09:14

well i'm still nooby at srl. I don't even know everything in srl. I only know stuff like MMouse, SendText, etc. etc. Oh and thx diamondhero6.

Mjordan

2007-03-17 00:04:16

From: bustinthejus
well i'm still nooby at srl. I don't even know everything in srl. I only know stuff like MMouse, SendText, etc. etc. Oh and thx diamondhero6.


well thats good enough to make this into SRL. and the only way that you'll learn to script with SRL is if you just start doing it. so none of this "i'm still nooby at srl. I don't even know everything in srl" just try it and you'll learn ;)

bustinthejus

2007-03-17 18:40:17

K how about


program AutoLogin;
{.include SRL/SRL.scar}


const
username=''; //username here
password=''; //password here

procedure ClickExistingUser;
begin

MMouse(449+random(50),277+random(10));
wait(200+random(200));
Mouse(449+random(10),277+random(10),true);
end;

procedure ClickLogin;
begin
MMouse(274+random(50),318+random(10));
wait(200+random(200));
Mouse(274+random(50),318+random(10),true);
end;

begin
SetupSrl;
wait (1000)
ClickExistingUser;
wait(500+random(100));
TypeSend(username);
wait(500+random(100));
TypeSend(password);
ClickLogin;


end.

I think that works. Didn't try.