Results 1 to 4 of 4

Thread: My First, First Script!

  1. #1
    Join Date
    Sep 2006
    Location
    New York
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default My First, First Script!

    It's a Basic Calculator.

    BTW I was wondering how I would go about telling Scar to find a certain color then click it.

    Thanks People.

  2. #2
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    nice little script it can easily be reduced into a case, and be made a lot shorter and easier, but it doesnt really matter for a first script i dont mind showing you if you want.

    and to find a color(basicly)
    SCAR Code:
    program New;
    {.Include SRL/SRL.scar}
    var x, y: integer;

    begin
     mousespeed:= 10;
     if findcolortolerance(x, y, {color}, 0, 0, 100, 100, 10) then
     mouse(x, y, 0, 0, true);
    end.

    to break it down,

    x, y are the variables that it stores the point of the color is, fill in your own color, then the "0, 0, 100, 100" is the area to search for the color. the 10 is the tolerance.

    there are LOADS of different ways to find color, and much much better ways(more complex as well) to find color(s), but that should get the basic idea across. i also wouldn't really recommend using findcolortolerance in RS.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  3. #3
    Join Date
    Sep 2006
    Location
    New York
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks man! I feel like a little kid with a new toy. I'm gonna check out your tut too.

  4. #4
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by crunch man View Post
    Thanks man! I feel like a little kid with a new toy. I'm gonna check out your tut too.
    mhm, sure thing its a huge tut if your talking about the basic scripting.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

Thread Information

Users Browsing this Thread

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •