Results 1 to 6 of 6

Thread: Strange Mouse Movement Error..

  1. #1
    Join Date
    Jan 2007
    Posts
    513
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Strange Mouse Movement Error..

    I have this:

    SCAR Code:
    if (FindMainColor(x, y, ...., 19, True)) or
          (FindMainColor(x, y, ...., 19, True)) then
        begin
          Mouse(x, y, 3, 3, False);
          ClickOption('...', 1);
          Wait(5000 + Random(1000));
          if (FindMainColor(Fx, Fy, ..., 19, True)) or
            (FindMainColor(Fx, Fy, ...., 19, True)) then
          repeat
            MMouse(Fx, Fy, 1, 1);  --- or here is the error
            FishAntiBans;
            MMouse(Fx, Fx, 1, 1);  --- or here is the error
            if (not (IsUpText('...'))) then
            blabla
         until(..)

    Where i typed -- here is the error i get this error:
    It mouves the mouse to Fx, Fy, but then, the mouse quickly moves a bit up, or a bit down, so the mouse isn't at the color anymore.. I know I have aot of questions, but I am almost done with my script, and i dont know anything about all these strange errors =/


    Thanks alot for your time!

    EDIT: I released my script here!!
    Srl simply rocks.

  2. #2
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    um
    can i have the error message

    here
    to fix errors and learn easily
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  3. #3
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    There is no error from this. It's what's known as a 'logic bug'.

    Take out the second MMouse, or do getmousepos(fx, fy); before the second one.
    Interested in C# and Electrical Engineering? This might interest you.

  4. #4
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Im not sure what you are trying to do, but maybe something like this:
    SCAR Code:
    if (FindMainColor(x, y, ...., 19, True)) or
          (FindMainColor(x, y, ...., 19, True)) then
        begin
          Mouse(x, y, 3, 3, False);
          ClickOption('...', 1);
          Wait(5000 + Random(1000));
         repeat
          if (FindMainColor(Fx, Fy, ..., 19, True)) or
            (FindMainColor(Fx, Fy, ...., 19, True)) then
           begin
            MMouse(Fx, Fy, 1, 1);  --- or here is the error
            FishAntiBans;
            MMouse(Fx, Fx, 1, 1);  --- or here is the error
            if (not (IsUpText('...'))) then
            blabla
           end;
         until(..)

  5. #5
    Join Date
    Jan 2007
    Posts
    513
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    @ Smartkid I allready tryed that, but because it didn't work, i left it out
    @ pentti It needs to repeat when it finds the color ...

    What I try to do is:
    It finds an object, it clicks on it
    It waits
    It moves the mouse to that color again, to see if the color is still there
    When it finds that color there, it does the AntiBans, then it sees again if the object is there
    it repeats until the object isn't there anymore

    You understand a bit? ..
    Srl simply rocks.

  6. #6
    Join Date
    Jan 2007
    Posts
    513
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm.. I solved it .. Don't ask me how, I tryed 100 things
    Srl simply rocks.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mouse movement (slow) - SRL error?
    By ss23 in forum OSR Help
    Replies: 4
    Last Post: 12-01-2007, 01:37 PM
  2. Need some help with mouse movement.
    By 0wnedYU in forum OSR Help
    Replies: 6
    Last Post: 04-19-2007, 11:43 PM

Posting Permissions

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