Results 1 to 3 of 3

Thread: Cant Use my First Script ?

  1. #1
    Join Date
    Dec 2007
    Location
    I'm the short man in all those arcade games you play
    Posts
    169
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Cant Use my First Script ?

    Hello, I have just created my first script (an auto-talker). I do not know why it will not type what I have specified for it to in runescape.

    This is my script:

    //Souppy's first auto talker
    program Autotalker;

    const
    NumberOfMessages= 3; // Number of Messages
    Message1= ('...') // Type your 1st message here
    ;Message2= ('...') // Type your 2nd message here (Only fill in if you need)
    ;Message3= ('...') // Type your 3rd message here (Only fill in if you need)
    ;Time1= (1000 + Random(250)); // Wait time between each message (in Milliseconds)

    //------------------------------------------------------------------------------
    //------------------------------------------------------------------------------

    procedure Write;
    begin
    repeat;
    Wait (Time1)
    TypeSend (Message1)

    if (NumberOfMessages=2) then
    begin
    TypeSend (Message1)
    Wait (Time1)
    TypeSend (Message2)
    Wait (Time1)
    end;

    if (NumberOfMessages=3) then
    begin
    TypeSend (Message1)
    Wait (Time1)
    TypeSend (Message2)
    Wait (Time1)
    TypeSend (Message3)
    Wait (Time1)

    end;
    until (False);
    end;

    begin;
    Writeln ('Please do remember this is my first script')
    end.

    Any ideas why it doesn't type into runescape ?

  2. #2
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    First of all, always post SCAR code in [*SCAR] [*/SCAR] tags (no *s).

    Also, make sure you call SetUpSRL;

    SCAR Code:
    {.Include SRL\SRL.SCAR}

    begin
      SetUpSRL;
    end.

    and you may want to use TypeSend instead of SendKeys, oh, and using Wait(1000 + Random(1000)); ect will help make your script less detectable.

    Also look into standards, keep working at it, you may also want to read some beginner tutorials.

  3. #3
    Join Date
    Dec 2007
    Location
    I'm the short man in all those arcade games you play
    Posts
    169
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks muchly Ice, I tried using a random, but it didn't work for me first time, I'll try again.

    Edit:

    Could you tell me where to put the
    {.Include SRL\SRL.SCAR}

    begin
    SetUpSRL;
    end.

    Also .. How do I put codes into tags, I seem to have forgotten

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •