Results 1 to 5 of 5

Thread: Out of Bounds Error

  1. #1
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default Out of Bounds Error

    Hey, my script is running fine but occasionally it starts to constantly spam this error:

    Simba Code:
    Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
    Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.

    It quickly fills the entire debug box and that's quite annoying.

    Would be great if anyone who know what the problem is could tell me how to fix it.

    Thanks, BMWxi

  2. #2
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

    Happens when a finder function (ie FindColorsTolerance) tries searching outside the client bounds. Try to determine which finder function is causing the issue.

  3. #3
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Simba Code:
    If FindObjCustom(x, y, ['take', 'Raw', 'Chicken'], [12567240], 3) Then

    This I think

    E: Is there any way to get FindObjCustom to search only on the main screen?

    I think'll have to use FindObjEx to only search the main screen.
    Last edited by Ian; 10-02-2012 at 07:21 PM.

  4. #4
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by BMWxi View Post
    Simba Code:
    If FindObjCustom(x, y, ['take', 'Raw', 'Chicken'], [12567240], 3) Then

    This I think

    E: Is there any way to get FindObjCustom to search only on the main screen?

    I think'll have to use FindObjEx to only search the main screen.
    It already does.
    Simba Code:
    function FindObjCustom(var cx, cy: Integer; Text: TStringArray; Color: TIntegerArray; Tol: Integer): Boolean;
    begin
      Result := FindObjEx(cx, cy, Text, Color, Tol, 50, MSX1, MSY1, MSX2, MSY2);
    end;
    Post all your finder functions if the problem persists.

  5. #5
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    It's FindObject

    It did it for me when I used it.

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
  •