Results 1 to 5 of 5

Thread: out of bounds

  1. #1
    Join Date
    Mar 2012
    Posts
    44
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Thumbs up out of bounds

    using smart and I get this error

    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.


    my code is this

    Code:
     FindColorTolerance(x,y,2255975,MSX1, MSY1, MSX2, MSY2,6)
      Mouse(x, y, 4, 4, True);
    it managed to find the colour I want but doesn't left click on it.

  2. #2
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    Don't worry about the warning it just means it was looking outside of the mainscreen for the color and shouldn't be a problem but for a left click does the mouse hover over the object?
    Current Project: Retired

  3. #3
    Join Date
    Mar 2012
    Posts
    44
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yea it hovers over the npc but doesn't click it

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

    Default

    You could try turning up the tolerance, or down.
    I had the same problem with it also, and adjusting the tolerance fixed it for me.

  5. #5
    Join Date
    Mar 2012
    Posts
    44
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yes this fixed it for me I changed the tolerance to 6 thanks for all the help guys

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
  •