Results 1 to 8 of 8

Thread: Finding color in a box on MM?

  1. #1
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Finding color in a box on MM?

    Hey everyone,

    I'm trying to find a certain color in a box on the minimap. I am using the ScanMMAreaColorExactTolerance function, but it doesn't seem to be working for me.

    Here is the code I'm using to test for the color...
    Code:
       if(ScanMMAreaColorExactTolerance(xm, ym, 565, 60, 729, 146, 247, 7)) then
       begin
          mouse(xm, ym, 0, 0, true);
       end else
       begin
          writeln('Could not find that color, grrr!');
       end
    Here is the function...
    function ScanMMAreaColorExactTolerance(var x, y: Integer; x1, y1, x2, y2, color, tolerance: Integer): Boolean;
    x1, y1, x2, y2 = Left, Top, Right, Bottom? Is that correct?

  2. #2
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    x1, y1, x2, y2 = Left, Top, Right, Bottom? Is that correct?
    Yes.

    Can you manually verify (with color picker) that the color is in the box?

  3. #3
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Yeah, the color is around 600, 96.

  4. #4
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Does findmmcolortol work?

  5. #5
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Yes that does work, but I need to specify a box somehow.

  6. #6
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    How about findcolortolerance?

  7. #7
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Yes, that works thank you ! I wonder why ScanMMAreaColorExactTolerance didn't work though.

  8. #8
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Well it uses ScanExactMMAreaD, and that looks just the same, I don't understand either.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. color finding
    By elobire in forum OSR Help
    Replies: 7
    Last Post: 12-15-2008, 09:03 PM
  2. color finding help
    By fORCE_wORKS in forum OSR Help
    Replies: 1
    Last Post: 11-09-2007, 11:18 AM
  3. Need Finding A Color Help >.<
    By pkzzz in forum OSR Help
    Replies: 5
    Last Post: 10-11-2007, 09:32 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
  •