Results 1 to 6 of 6

Thread: need help with finding color (hard question, I think?)

  1. #1
    Join Date
    Jan 2007
    Location
    BC, Canada
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default need help with finding color (hard question, I think?)

    how do i find a color that is greater than or less than a specific color.

    for example

    if there were a dot boucing around a screen and it changes size and color how would i find it. and retrieve xy coordinates and color.

  2. #2
    Join Date
    Jan 2007
    Location
    BC, Canada
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default i figured it out.

    i figured it out myself but its completely useless unless you dont mind waiting all day for it so if anyone else was wondering here it is.

    SCAR Code:
    program FindAColor;
    var
      x,y,color: Integer;
      ColorResult: Boolean;
    begin
      color:= 0;
      repeat
      ColorResult:= FindColor(x,y,color,0,0,100,100);
      color:= color + 1;
      until(ColorResult = True);
      writeln(IntToStr(color));
      writeln(IntToStr(x)+', '+IntToStr(y));
    end.

  3. #3
    Join Date
    Apr 2007
    Location
    Finland
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by fORCE_wORKS View Post
    i figured it out myself but its completely useless unless you dont mind waiting all day for it so if anyone else was wondering here it is.

    SCAR Code:
    program FindAColor;
    var
      x,y,color: Integer;
      ColorResult: Boolean;
    begin
      color:= 0;
      repeat
      ColorResult:= FindColor(x,y,color,0,0,100,100);
      color:= color + 1;
      until(ColorResult = True);
      writeln(IntToStr(color));
      writeln(IntToStr(x)+', '+IntToStr(y));
    end.
    Remember standards. (You forgot to add the spaces after repeat.)

    SCAR Code:
    program FindAColor;
    var
      x,y,color: Integer;
      ColorResult: Boolean;
    begin
      color:= 0;
      repeat
        ColorResult:= FindColor(x,y,color,0,0,100,100);
        color:= color + 1;
      until(ColorResult = True);
      writeln(IntToStr(color));
      writeln(IntToStr(x)+', '+IntToStr(y));
    end.

  4. #4
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

  5. #5
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Example is there..

    if there were a dot boucing around a screen and it changes size and color how would i find it. and retrieve xy coordinates and color.
    Sounds like a flash game lol. Find it by object/DTM/BMP

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  6. #6
    Join Date
    Jan 2007
    Location
    BC, Canada
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ya it is a flash game ill give it a try.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Finding a color in the inv.
    By yanix in forum OSR Help
    Replies: 1
    Last Post: 01-30-2008, 09:51 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
  4. Help Please, not hard question - will rep!
    By craz7 hav3n in forum OSR Help
    Replies: 4
    Last Post: 09-01-2007, 10:55 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
  •