Results 1 to 4 of 4

Thread: clicking on colors

  1. #1
    Join Date
    Jun 2008
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default clicking on colors

    idk if this belongs somewhere else, but im new to scripting, and i just need to know what you do to make the script click a certain color/bitmap

    thanks

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

    Default

    SCAR Code:
    if FindColorSpiralTolerance(x, y, color, MSX1, MSY1, MSX2, MSY2, {tol}) then
      Mouse(x, y, 2, 2, True);
    if FindBitmapToleranceIn(bitmap, x, y, MIX1, MIY1, MIX2, MIY2, {tol}) then
      Mouse(x, y, 2, 2, True);
    Something like that.

  3. #3
    Join Date
    Jun 2008
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks

  4. #4
    Join Date
    Jan 2008
    Location
    Stanford, CA
    Posts
    329
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    What Chris said are two good functions, but with your post count as 4 I don't think you know what it means =). FindColorSpiralTolerance searches for the specified color by "spiraling" from the middle of the points specified and searches from there. Tolerance is if the color can vary a bit. A lower tolerance tells the function that there should be little (if any) color variation and vice versa. MSX1, MSY1, MSX2, MSY2 are coordinates for the main screen. They are SRL coordinates that pinpoint the exact coordinates that make up the Main Screen of Runescape. Likewise there are other SRL coordinates like MIX1,MIY1... that are for other things like the inventory. MMX1(Minimap), etc. The second function finds a bitmap image in a certain area and certain tolerance like before. I suggest you read WhoCares357's tutorial for a more indepth tutorial to color/bitmap/DTM finding

    Forgive me if you knew this already.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. All about colors
    By Tickyy in forum OSR Outdated Tutorials
    Replies: 59
    Last Post: 11-08-2013, 04:26 PM
  2. colors
    By Iroki in forum OSR Help
    Replies: 1
    Last Post: 10-06-2008, 08:09 PM
  3. New Colors !!!
    By XxtOmxX in forum RS has been updated.
    Replies: 13
    Last Post: 06-05-2007, 02:02 PM
  4. Getting axe colors.
    By kooldude in forum OSR Help
    Replies: 3
    Last Post: 04-17-2007, 09:07 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
  •