Results 1 to 6 of 6

Thread: Help with a 5 lined script!

  1. #1
    Join Date
    May 2008
    Posts
    308
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default Help with a 5 lined script!

    what is Identifier?
    i get this:
    Line 3: [Error] (3:1): Identifier expected in script

    my script:

    SCAR Code:
    program FindLogin;
    begin
    procedure ClickMouseSpline(352, 176, 413, 189: Integer; Left: True);
    end;
    end.

    i just want my mouse to find and click the login button.

  2. #2
    Join Date
    Oct 2006
    Posts
    1,190
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    here i made it compile
    SCAR Code:
    program FindLogin;

    procedure login;
    begin
      ClickMouseSpline(352, 176, 413, 189, True);
    end;

    begin
      login;
    end.

    you do not need to add the words integer or true, if you are trying to creat a login procedure try looking through login.scar

    also it would really help to look through some tutorials to get the basic ideas of scar and srl



  3. #3
    Join Date
    May 2008
    Posts
    308
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    that file is broken i think?
    the new login screen u know, and in that file its setting up graphic settings and that tab isnt in the same place that it used to be, it should be updated.
    but thx alot!

    btw, that last thing u got there?
    SCAR Code:
    begin;
    login;
    end.


    why did u add that?

  4. #4
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Thats called a MainLoop so it will run in the order you specify. So you can do

    SCAR Code:
    Begin
      one;
      two;
      three;
    end.

    And you can change the order

    SCAR Code:
    Begin
      Three;
      One;
      Two;
    end.

    A MainLoop is essential to any script!

  5. #5
    Join Date
    May 2008
    Posts
    308
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    oh so if:
    SCAR Code:
    Begin
      Three; function pee
      One; function piss
      Two; function sleep
    end.
    its will do those threee in that order?
    and continue, after two it will go to the top and pee again?

  6. #6
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by bi a op View Post
    oh so if:
    SCAR Code:
    Begin
      Three; function pee
      One; function piss
      Two; function sleep
    end.
    its will do those threee in that order?
    and continue, after two it will go to the top and pee again?
    For that you must add a repeat and and until.so this.

    SCAR Code:
    Begin
      repeat  
        Three;// function pee          //SCAR doesnt read the stuff after the   //
        One;// function piss
        Two; //function sleep
      until (false)
    end.

    THat will make it repeat until you stop the script.
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

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
  •