SRL Archive - OSR Help

Auto Type Help


Deathjoker

2011-01-26 23:31:29

The Script Will Run Then Say Done But Wont Type In My Login.
Please Help Me, Im New To Scripting So Any Pointers Would Be Helpful
Thank You.

Program Login;

Const
Account ='Account';
Password ='Password';
Speed = 500;

Procedure Login;
Begin
Clickmouse(114, 374,True) //Start Button
Wait(Speed)
SendKeysSilent(Account);//Login
Wait(50)

Keydown(9)//Tab Key
Wait(50)
Keyup(9)

Wait(Speed)
SendKeysSilent(Password);//Password
Wait(50)

Keydown(13)//Enter
Wait(50)
Keyup(13)

Clickmouse(540, 140,True)// Login
End;


Begin
Login;
End.

TomTuff

2011-01-26 23:39:09

program New;
{$DEFINE SMART}
{$i SRL\SRL.scar}
{$i Reflection\Reflection.Simba}


const
S_Mems = True; //Members?
S_World = 38; //Smart world
S_Signed = True; //Signed client?


procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

with Players[0] do
begin
Name := ''; //username
Pass := ''; //password
Nick := '';
Pin := '';
Active := True;
end;
end;


procedure MainLoop;
begin
Smart_Members := S_Mems;
Smart_Server := S_World;
Smart_Signed := S_Signed;
Smart_SuperDetail := False;
SetupSRL;
SetupReflectionEx(True);
DeclarePlayers;

LoginPlayer;
repeat
repeat
until(not(LoggedIn));
until(AllPlayersInactive);
end;


begin
MainLoop;
end.

Deathjoker

2011-01-26 23:58:15

Im actually Using Scar, im not sure what simba is, And I Wanted Help Learning, I Didnt want a script. i needed help with mine please.

RISK

2011-01-27 00:02:15

Simba is SRL's primary scripting tool now. We highly suggest you switch over. There is nothing really different about the coding way at all and it looks much better in appearance. It is also open source!

Also, you should definately try using SRL's include for your script. It includes a function to login your character (Which TomTuff pointed out to you in his script example, in a longer way; Including reflection and such which you don't have to include if you don't want to.

For your script itself, try putting "ActivateClient" in your "Login" procedure after selecting the RuneScape client with the crosshair tool.

To learn how to set Simba and SRL up, go here: http://villavu.com/forum/showthread.php?t=47714

Deathjoker

2011-01-27 00:16:16

I dont actually play RuneScape :O

so for my script i put
Begin
Findwindowtitlepart('My window', False)
Activateclient;
End;

its still isent typing anything

Train

2011-01-27 00:17:32

Dont use sendkeyssilent, use sendkeys.

Deathjoker

2011-01-27 00:33:31

From: Train
Dont use sendkeyssilent, use sendkeys.


Still isent typing :/