Results 1 to 6 of 6

Thread: Need help with Mouse

  1. #1
    Join Date
    Feb 2015
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default Need help with Mouse

    hey, i was making a simple script for killing desert strykeworm, worked fine until now, i get this error

    Error: Operator expected at line 434
    Compiling failed.


    procedure moveMouse(p: TPoint); overload;
    begin
    moveMouse(p.x p.y);
    end;


    Mouse.simba gets the error!




    My script:

    program new;
    {$I SRL-6/SRL.simba} // To load the SRL include files



    procedure inve
    var
    x, y:integer;
    begin
    if findcolor(x, y, 3957109, 0, 0, 569, 308) or
    findcolor(x, y, 3299168, 0, 0, 569, 308) or
    findcolor(x, y, 3298143, 0, 0, 569, 308) or
    findcolor(x, y, 3891316, 0, 0, 569, 308) then

    begin
    movemouse(X, Y);
    wait(10);
    clickmouse(X, Y, Mouse_Right);
    wait(200);
    if chooseoption.select(['Mound']) then

    writeln('mordi');


    wait(1500);
    end;
    end;

    procedure right
    var
    x, y:integer;
    begin
    if not findcolor(x, y, 13582779, 0, 0, 569, 308) or
    findcolor(x, y, 6140582, 0, 0, 569, 308) or
    findcolor(x, y, 5150604, 0, 0, 569, 308) or
    findcolor(x, y, 3565395, 0, 0, 569, 308) or
    findcolor(x, y, 2376756, 0, 0, 569, 308) or
    findcolor(x, y, 8989299, 0, 0, 569, 308) or
    findcolor(x, y, 3499340, 0, 0, 569, 308) then
    begin
    inve;
    end;


    if findcolor(x, y, 13582779, 0, 0, 569, 308) or
    findcolor(x, y, 6140582, 0, 0, 569, 308) or
    findcolor(x, y, 5150604, 0, 0, 569, 308) or
    findcolor(x, y, 3565395, 0, 0, 569, 308) or
    findcolor(x, y, 2376756, 0, 0, 569, 308) or
    findcolor(x, y, 8989299, 0, 0, 569, 308) or
    findcolor(x, y, 3499340, 0, 0, 569, 308) then


    begin
    movemouse(X, Y);
    wait(10);
    clickmouse(X, Y, Mouse_Right);
    wait(200);
    if chooseoption.select(['Attack']) then

    writeln('mordi');


    wait(3000);

    end;
    end;


    procedure choose
    var
    x, y:integer;
    oo:integer;
    begin

    if findcolor(x, y, 1675987, 0, 57, 574, 303) then
    repeat

    wait(1);



    until(findcolor(x, y, 4302046, 0, 57, 574, 303) or
    findcolor(x, y, 4560580, 0, 57, 574, 303) or
    findcolor(x, y, 4173292, 0, 57, 574, 303) or
    findcolor(x, y, 4172780, 0, 57, 574, 303))

    end;


    procedure cam
    var
    x, Y:integer;
    begin
    if not findcolor(x, y, 1675987, 0, 57, 574, 303) then
    begin
    keydown(VK_right);
    wait(1000);
    Keyup(VK_right);
    end;
    end;

    procedure pickup
    var
    x, y:integer;
    begin
    if findcolor(x, y, 8703695, 0, 0, 569, 308) or
    findcolor(x, y, 8965590, 0, 0, 569, 308) or
    findcolor(x, y, 9227482, 0, 0, 569, 308) or
    findcolor(x, y, 9159640, 0, 0, 569, 308) or
    findcolor(x, y, 8703437, 0, 0, 569, 308) or
    findcolor(x, y, 9291228, 0, 0, 569, 308) or
    findcolor(x, y, 8637644, 0, 0, 569, 308) then

    begin
    movemouse(X, Y);
    wait(10);
    clickmouse(X, Y, Mouse_Right);
    wait(200);
    if chooseoption.select(['Grimy']) then

    writeln('mordi');

    if chooseoption.select(['Bar']) then

    writeln('mordi');

    if chooseoption.select(['Fruit']) then

    writeln('mordi');
    wait(1500);
    end;
    end;


    procedure eat
    var
    x, y:integer;
    oo:integer;
    begin
    oo := DTMFromString('mWAAAAHicY2FgYIgD4lwgrgbiHiD2YmRg8E TCypo6KBgdMKJhEAAAKvcE5A==');
    if finddtm(x, y, oo, 7, 308, 150, 337) then

    begin
    if findcolor(x, y, 1594796, 580, 324, 796, 562) then

    movemouse(x, y);
    wait(10);
    clickmouse(X, Y, Mouse_left);

    end;

    end;


    begin
    repeat
    choose;
    right;
    choose;
    pickup;
    choose;
    cam;

    choose;

    until(false)
    end.

  2. #2
    Join Date
    Feb 2015
    Posts
    422
    Mentioned
    41 Post(s)
    Quoted
    226 Post(s)

    Default

    Quote Originally Posted by runeslide View Post
    hey, i was making a simple script for killing desert strykeworm, worked fine until now, i get this error

    Error: Operator expected at line 434
    Compiling failed.


    procedure moveMouse(p: TPoint); overload;
    begin
    moveMouse(p.x p.y);
    end;


    Mouse.simba gets the error!




    My script:

    program new;
    {$I SRL-6/SRL.simba} // To load the SRL include files



    procedure inve
    var
    x, y:integer;
    begin
    if findcolor(x, y, 3957109, 0, 0, 569, 308) or
    findcolor(x, y, 3299168, 0, 0, 569, 308) or
    findcolor(x, y, 3298143, 0, 0, 569, 308) or
    findcolor(x, y, 3891316, 0, 0, 569, 308) then

    begin
    movemouse(X, Y);
    wait(10);
    clickmouse(X, Y, Mouse_Right);
    wait(200);
    if chooseoption.select(['Mound']) then

    writeln('mordi');


    wait(1500);
    end;
    end;

    procedure right
    var
    x, y:integer;
    begin
    if not findcolor(x, y, 13582779, 0, 0, 569, 308) or
    findcolor(x, y, 6140582, 0, 0, 569, 308) or
    findcolor(x, y, 5150604, 0, 0, 569, 308) or
    findcolor(x, y, 3565395, 0, 0, 569, 308) or
    findcolor(x, y, 2376756, 0, 0, 569, 308) or
    findcolor(x, y, 8989299, 0, 0, 569, 308) or
    findcolor(x, y, 3499340, 0, 0, 569, 308) then
    begin
    inve;
    end;


    if findcolor(x, y, 13582779, 0, 0, 569, 308) or
    findcolor(x, y, 6140582, 0, 0, 569, 308) or
    findcolor(x, y, 5150604, 0, 0, 569, 308) or
    findcolor(x, y, 3565395, 0, 0, 569, 308) or
    findcolor(x, y, 2376756, 0, 0, 569, 308) or
    findcolor(x, y, 8989299, 0, 0, 569, 308) or
    findcolor(x, y, 3499340, 0, 0, 569, 308) then


    begin
    movemouse(X, Y);
    wait(10);
    clickmouse(X, Y, Mouse_Right);
    wait(200);
    if chooseoption.select(['Attack']) then

    writeln('mordi');


    wait(3000);

    end;
    end;


    procedure choose
    var
    x, y:integer;
    oo:integer;
    begin

    if findcolor(x, y, 1675987, 0, 57, 574, 303) then
    repeat

    wait(1);



    until(findcolor(x, y, 4302046, 0, 57, 574, 303) or
    findcolor(x, y, 4560580, 0, 57, 574, 303) or
    findcolor(x, y, 4173292, 0, 57, 574, 303) or
    findcolor(x, y, 4172780, 0, 57, 574, 303))

    end;


    procedure cam
    var
    x, Y:integer;
    begin
    if not findcolor(x, y, 1675987, 0, 57, 574, 303) then
    begin
    keydown(VK_right);
    wait(1000);
    Keyup(VK_right);
    end;
    end;

    procedure pickup
    var
    x, y:integer;
    begin
    if findcolor(x, y, 8703695, 0, 0, 569, 308) or
    findcolor(x, y, 8965590, 0, 0, 569, 308) or
    findcolor(x, y, 9227482, 0, 0, 569, 308) or
    findcolor(x, y, 9159640, 0, 0, 569, 308) or
    findcolor(x, y, 8703437, 0, 0, 569, 308) or
    findcolor(x, y, 9291228, 0, 0, 569, 308) or
    findcolor(x, y, 8637644, 0, 0, 569, 308) then

    begin
    movemouse(X, Y);
    wait(10);
    clickmouse(X, Y, Mouse_Right);
    wait(200);
    if chooseoption.select(['Grimy']) then

    writeln('mordi');

    if chooseoption.select(['Bar']) then

    writeln('mordi');

    if chooseoption.select(['Fruit']) then

    writeln('mordi');
    wait(1500);
    end;
    end;


    procedure eat
    var
    x, y:integer;
    oo:integer;
    begin
    oo := DTMFromString('mWAAAAHicY2FgYIgD4lwgrgbiHiD2YmRg8E TCypo6KBgdMKJhEAAAKvcE5A==');
    if finddtm(x, y, oo, 7, 308, 150, 337) then

    begin
    if findcolor(x, y, 1594796, 580, 324, 796, 562) then

    movemouse(x, y);
    wait(10);
    clickmouse(X, Y, Mouse_left);

    end;

    end;


    begin
    repeat
    choose;
    right;
    choose;
    pickup;
    choose;
    cam;

    choose;

    until(false)
    end.
    There was an error with a recent update in SRL, it has been fixed however. If you check for an update. It should download version 1171 and fix that problem now.

    Edit: Also a tip, when posting a script, add it between [SIMBA][/SIMBA] tags

  3. #3
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

  4. #4
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    Well, at least we got you to post

    PS: rev 1175 now.
    you know... if commits were tested (as they should be), we wouldnt have this issue... <_<

  5. #5
    Join Date
    Feb 2015
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    ty! but i need help with scripting, somethings dont work and other do, can someone add me on skype and help me? :P

  6. #6
    Join Date
    Nov 2006
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    i had also had this error before, i just uninstalled simba again and reinstall, and it worked

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
  •