Results 1 to 6 of 6

Thread: FindColor(var x,y,color,xs,ys,xe,ye)

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

    Default FindColor(var x,y,color,xs,ys,xe,ye)

    Hi,sorry if this question is kind of retarded, but I'm confused on the FindColor procedure.

    I don't understand what the xs,ys,xe,ye parts are. I looked in the tutorials but I dont understand comepletely what those values are supposed to do. I'd appreciate it if someone were to explain or give me an example of what those values are supposed to do.

    If I understand correctly, they are supposed to give the region/area in where the color should be found. If im wrong correct me please. Thanks.

  2. #2
    Join Date
    Jun 2006
    Location
    Tennessee, USA
    Posts
    2,603
    Mentioned
    1 Post(s)
    Quoted
    46 Post(s)

    Default

    yes im wondering about this too, i somewhat understand it, but not fully. i think it is something like this: FindColor(x,y,156982,548,252,65,103)
    the 156982 is the color you want to find. then the four sets of numbers after that are the coordinates of the box(top left and bottom right corners of box i believe) which you want to find the color within.

  3. #3
    Join Date
    Dec 2006
    Location
    Ky
    Posts
    390
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yup you hit it. Its just the coordinates you want the search to start from and end at. You can get these coords by specifying the RS screen and then moving your mouse to the point you want to start from and then look at the bottom left corner of SCAR and there should be a number then a colon. The first being your X and the second your Y. And repeat for the end point.
    SUMMER BREAK be back when I want to

  4. #4
    Join Date
    Jun 2006
    Location
    Tennessee, USA
    Posts
    2,603
    Mentioned
    1 Post(s)
    Quoted
    46 Post(s)

    Default

    you can also use FindColorSpiralTolerance. its the same thing except there will be an extra number at the end. the extra number being the tolerance.

  5. #5
    Join Date
    Dec 2006
    Location
    Ky
    Posts
    390
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I would use SRL's coloring finding functions for best results
    SUMMER BREAK be back when I want to

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

    Default

    thanks guys.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. FindColor
    By Sp0rky in forum OSR Help
    Replies: 26
    Last Post: 08-01-2007, 08:46 PM
  2. Need help with If not FindColor
    By philowns in forum OSR Help
    Replies: 3
    Last Post: 08-01-2007, 03:36 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
  •