Results 1 to 7 of 7

Thread: debug help

  1. #1
    Join Date
    Oct 2009
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default debug help

    after a bit of advice and some luck ive come up with

    Code:
    program New;
    
    
    begin
    
     movemouse(240, 785);
     wait(3000);
     clickmouse(240,785,true);
     wait(10000);
        movemouse(342, 130);
        clickmouse(342, 130, true);
        wait(1000);
        sendkeys('xxxxxxx';//the error line is here
        wait(500);
     movemouse(367, 154);
     clickmouse(367, 154, true);
     wait(1000);
     sendkeys('xxxxxx';
     wait(500);
            movemouse(359, 171);
            clickmouse(359, 171,true);
    end.


    but when i compile it it gives me
    Line 13: [Error] (13:27): comma (',') expected in script C:\Program Files\SCAR 3.21\Scripts\hackcess script.scar

  2. #2
    Join Date
    Sep 2006
    Posts
    322
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Add a ) to the end of it, before the ; same for the other sendkey



    You need to have a procedure. Copy
    SCAR Code:
    program new;
    procedure blah;
    movemouse(240, 785);
     wait(3000);
     clickmouse(240,785,true);
     wait(10000);
        movemouse(342, 130);
        clickmouse(342, 130, true);
        wait(1000);
        sendkeys('xxxxxxx');//the error line is here
        wait(500);
     movemouse(367, 154);
     clickmouse(367, 154, true);
     wait(1000);
     sendkeys('xxxxxx');
     wait(500);
            movemouse(359, 171);
            clickmouse(359, 171,true);
    end;
    begin
    blah;
    end.
    Last edited by uncfan1119; 10-18-2009 at 06:44 PM.
    "SRL is the best SCAR community in the World, with the most talented programmers: adjust your volume."
    -Wizzup?

  3. #3
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No he doesn't.

    He missed a closing parentheses, after both sendkeys.

    Fixed, standardized to:

    SCAR Code:
    program New;

    begin
      movemouse(240, 785);
      wait(3000);
      clickmouse(240,785,true);
      wait(10000);
      movemouse(342, 130);
      clickmouse(342, 130, true);
      wait(1000);
      sendkeys('xxxxxxx');//the error line is here
      wait(500);
      movemouse(367, 154);
      clickmouse(367, 154, true);
      wait(1000);
      sendkeys('xxxxxx');
      wait(500);
      movemouse(359, 171);
      clickmouse(359, 171,true);
    end.

    ~Sand

  4. #4
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by uncfan1119 View Post
    Add a ) to the end of it, before the ; same for the other sendkey



    You need to have a procedure. Copy
    SCAR Code:
    program new;
    procedure blah;
    movemouse(240, 785);
     wait(3000);
     clickmouse(240,785,true);
     wait(10000);
        movemouse(342, 130);
        clickmouse(342, 130, true);
        wait(1000);
        sendkeys('xxxxxxx';//the error line is here
        wait(500);
     movemouse(367, 154);
     clickmouse(367, 154, true);
     wait(1000);
     sendkeys('xxxxxx';
     wait(500);
            movemouse(359, 171);
            clickmouse(359, 171,true);
    end;
    begin
    blah;
    end.
    That wouldn't work...

    Try this:
    SCAR Code:
    program new;
    procedure blah;
    begin
    movemouse(240, 785);
     wait(3000);
     clickmouse(240,785,true);
     wait(10000);
        movemouse(342, 130);
        clickmouse(342, 130, true);
        wait(1000);
        sendkeys('xxxxxxx');//the error line is here
        wait(500);
     movemouse(367, 154);
     clickmouse(367, 154, true);
     wait(1000);
     sendkeys('xxxxxx');
     wait(500);
            movemouse(359, 171);
            clickmouse(359, 171,true);
    end;
    begin
    blah;
    end.

    EDIT: ninja'd lol

  5. #5
    Join Date
    Oct 2009
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    (slaps forehead) aight thanx




    edit: didnt work....it made the two text strings enter in the same box even tho i made it click into the second box successfully
    Last edited by tabernacle; 10-18-2009 at 06:53 PM.

  6. #6
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Tebernacle, is this script for runescape?
    If it is, you might get that account banned.
    Movemouse, ClickMouse, ect ect are all DETECTABLE BY JAGEX, and get you banned.
    You want to use the SRL include in order to be safe, like this:

    SCAR Code:
    program New;
    {.include SRL\SRL.scar}
    begin
     Mouse(240,785,4,4,true);
     wait(10000);
     Mouse(342, 130,4,4 true);
     Typesend('xxxxxxx';//the error line is here
     Mouse(367, 154,4,4 true);
     wait(1000);
     Typesend('xxxxxx';
     wait(500);
     Mouse(359, 171,4,4,true);
    end.

    Sendkeys is detectable.
    SRL's typesend isnt.
    Typesend also presses enter after it types, sendkeys does not.

    MoveMouse/Clickmouse are very robotic/instant/detectable.
    Mouse moves the mouse, and also clicks.
    It is very human like.
    Mouse(45,78,4,4,true)
    (45,78) is where it will move
    (4,4) is the 'randomness' so it wont move to the EXACT same spot every time
    and true is a left click.

    Enjoy!
    Last edited by YoHoJo; 10-18-2009 at 07:53 PM.

  7. #7
    Join Date
    Oct 2009
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh no lol its not for RS but THANK YOU.....ive been wondering how my other three RS accounts have been banned thnks

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
  •