Results 1 to 6 of 6

Thread: find color but NOT in a specified box..

  1. #1
    Join Date
    Apr 2007
    Posts
    373
    Mentioned
    2 Post(s)
    Quoted
    24 Post(s)

    Default find color but NOT in a specified box..

    What funtion/procedure do i need for that?
    I search scar manuals and srl manuals but i didn't found it.

    Can anyone tell me what procedure/function i need?

    Tyvm

  2. #2
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    You need to specify a box or else SCAR won't know where to look.

  3. #3
    Join Date
    Mar 2008
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well you can target the whole screen just drag the crosshair onto the desktop =)

    edit

    but i dont think thats what hes asking... im not sure of the RS dimensions but you have to specify those... although if you use them a lot make a global variable and declare the variable to be the edges =)

  4. #4
    Join Date
    Apr 2007
    Posts
    373
    Mentioned
    2 Post(s)
    Quoted
    24 Post(s)

    Default

    Thx for your interest already.
    But i think i may not have been very clear.
    What i mean is like findcolorspiraltolerance(x,y,color,a,b,c,d,e,f,g,h ,tol)

    so like it finds the color in the box (a,b,c,d) but not in a smaller box(e,f,g,h) In the Big box(a,b,c,d)

    I hope this made thngs clearer.

    Tyvm

  5. #5
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Oh ok... I think this should work:

    SCAR Code:
    function FindColorSkipBoxTolerance(var x, y: Integer; color, x1, y1, x2, y2, Tolerance: Integer; SkipBox: TBox): Boolean;

    However the box that it skips must be defined as a TBox. To convert integers into a TBox use IntToBox:

    SCAR Code:
    FindColorSkipBoxTolerance(x, y, Colour, a, b, c, d, Tol, IntToBox(e, f, g, h))

  6. #6
    Join Date
    Apr 2007
    Posts
    373
    Mentioned
    2 Post(s)
    Quoted
    24 Post(s)

    Default

    Woohoo that is what i was searching for.
    Tyvm
    your the best ^^

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how can i find the color?
    By soul extange in forum OSR Help
    Replies: 1
    Last Post: 03-22-2008, 03:14 AM
  2. Replies: 5
    Last Post: 07-31-2007, 07:23 PM
  3. Find Color
    By Hamish in forum OSR Help
    Replies: 7
    Last Post: 03-12-2007, 05:56 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
  •