So you just want the script to login and then spam click the first inventory spot?
What exactly does this achieve?
Here, I wrote exactly what you asked for, but dear god it will get you banned.
If you provide more details about what this script actually needs to do it is possible that I could write something that's a little bit better.
program P;
{$DEFINE SMART}
{$i SRL/SRL.Simba}
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name := ''; // Username
Pass := ''; // Password
Pin := ''; // PIN - Leave Blank If None
Active := True; // Is Player To Be Used?
end;
end;
function PRandoms: Boolean;
begin
Result := FindNormalRandoms or FindNonInventoryRandoms;
end;
procedure SetupLogin;
begin
ClearDebug;
Status('SetupLogin');
{$IFDEF SMART}
SRL_SixHourFix := True;
Smart_FixSpeed := True;
{$ENDIF}
SetupSRL;
DeclarePlayers;
ActivateClient;
if not LoggedIn then
LoginPlayer;
SetAngle(SRL_ANGLE_HIGH);
PRandoms;
end;
begin
SetupLogin;
repeat
PRandoms;
if not LoggedIn then
TerminateScript;
InvMouse(1, mouse_Left);
until(False);
end.