Results 1 to 7 of 7

Thread: FindColor & FindColorSpiralTolerance - Which one to use?

  1. #1
    Join Date
    Jul 2007
    Posts
    37
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    FindColor & FindColorSpiralTolerance - Which one to use?

    Well the title says it all really, i was wondering which one i should use in my scripts. I assume they do the same thing, right?


    Thanks in advance


    P.S I was wondering, when i write my scripts, should move the mouse to the co-ordinates first using MMouse? Or can i just use the code Mouse?

    I mean is there any reason i should use MMouse?



    Post if you dont understand what i mean, ill try to explain myself better :P

  2. #2
    Join Date
    Jul 2006
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    they are completely different read some tuts
    "your always where you supposed to be"

  3. #3
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok, findcolor will just find the color you specify, and store the position in the variables x and y(or any other variables you use).. FindColorSpiralTolerance will find the color you specify in a spiral with a tolerance, hence the part of the name "SpiralTolerance" And a reason to use MMouse is to move to that specific color, and if you want it to check the uptext of that you could do something like this..
    Code:
    If FindColorSpiralTolerance(x, y, 797668, MSX1, MSY1, MSX2, MSY2, 5)then
    Begin
      MMouse(x, y, 2, 2);
      If IsUpText('ine') then
      Mouse(x, y, 2, 2, True);
    End;
    Otherwise you can just use Mouse.

  4. #4
    Join Date
    Jul 2007
    Posts
    37
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok thanks alot Chris, + rep for you

  5. #5
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    FindColorTolerance is the same as FindColorSpiralTolerance, except that the latter searches for a color from the center out, whereas the former searches from the top down.

    Mouse will move the cursor to the point it's clicking before it clicks, so, no, if you're just clicking on something, Mouse is all you need.
    Interested in C# and Electrical Engineering? This might interest you.

  6. #6
    Join Date
    Jul 2007
    Posts
    37
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Smartzkid View Post
    FindColorTolerance is the same as FindColorSpiralTolerance, except that the latter searches for a color from the center out, whereas the former searches from the top down.
    Which is best to use? Detection wise i mean.

  7. #7
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    In my opinion FindColorSpiralTolerance, because the colors constantly change in RS, so using a tolerance to help find the color is always a good way.

    Thanks for the rep!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. 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
  •