SRL Archive - RS3 Help

typeSend Help.


Whynotskill

2015-01-09 17:13:30

So I am currently trying to have the script type –> ::home and press enter.
I can get the script to type ::home, but it doesn't press the enter key. I have also tried to insert the optional "pressEnter" parameter but get errors.

Can you please help me?

program new;
{$DEFINE SMART}
{$I SRL-6/SRL.simba}

procedure goToRunes();
begin
typeSend('::home');
wait(2500);
mouse(693, 302, MOUSE_MOVE);
fastClick(MOUSE_LEFT);
wait(5000);
mouse(238, 403, MOUSE_MOVE);
fastClick(MOUSE_RIGHT);
wait(750);
mouse(221, 455, MOUSE_MOVE);
fastClick(MOUSE_LEFT);
wait(2500);
end;

begin
clearDebug();
repeat
goToRunes();
until(false);
end.

P.S: A basic script to cheat a RSPS for me.
EDIT: I found out what the problem was - Smart was defined but wasn't necessary due to I wasn't using a smart oriented client.
Case solved.

KeepBotting

2015-01-09 17:23:04

typeSend()'s pressEnter boolean is true by default.

I see that you're defining SMART, when it's defined, VK_ENTER is a bit different (something to do with EventNazi)

Relevant code:

  {$IFDEF SMART}
if (k = 13) then
k := 10;
{$ENDIF}

That's from typeByte(), which is what typeSend() uses to press enter. Since you're defining SMART and thus using keycode 10, you could possibly try using 13.

So set typeSend()'s pressEnter boolean to false, and after you send your text, typeByte(13);