Results 1 to 9 of 9

Thread: Color finding problem

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

    Default Color finding problem

    I can't seem to get this part of my script to work.The error is "unknown identifier
    'x' in script"

    procedure Chop;
    begin
    if Findcolortolerance(x,y,4288143,2,212,516,223) then
    begin
    Wait(5000 + (random(325)));
    Mouse(x,y,0,0,true);
    end;


    Any help would be appriciated.

  2. #2
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Said:
    hmmm...procedure Chop; begin, if FindColorTolerance(x, y...
    What is x?
    x must a variable, declare it as integer.
    SCAR Code:
    Var
      x,y : integer;


  3. #3
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    procedure Chop;
    var
      x, y : integer;
    begin
      if Findcolortolerance(x,y,4288143,2,212,516,223) then
      begin
        Wait(5000 + (random(325)));
        Mouse(x,y,0,0,true);
      end;
    end;

    You just need to declare it - After Procedure/Program, & before Begin
    Good start on scripting! Keep it up
    Project: Welcome To Rainbow

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

    Default

    Thanks for the help but now i keep getting another error -_- [Error] (12677:50): Invalid number of parameters in script Sorry for the hastle xD

  5. #5
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    procedure Chop;
    var
      x, y: integer;
    begin
      if Findcolortolerance(x,y,4288143,2,212,516,223, 10) then
      begin
        Wait(5000 + Random(325));
        Mouse(x, y, 0, 0, True);
      end;
    end;

    Better? You Forgot Your Tolerance.

  6. #6
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    lol benja u may have forgot stuff of scripting :P j/k with you:


    SCAR Code:
    procedure Chop;
    var
    x,y :integer;
    begin
    if Findcolortolerance(x,y,4288143,Msx1,msx2,msy1,msy2) then
    begin
    MMouse(x,y,0,0);//remember this guys :P?
    Wait(5000 + (random(325)));
    Mouse(x,y,0,0,true);
    {or
    Mouse(x,y,0,0,false);
    wait(1000);
    chooseoption('hop');for chop}

    end;
    Now thats a complete
    oh yeah forgot the tol :P

  7. #7
    Join Date
    Jul 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    wow i'm dumb I really need to pay more attention to what i do. Thanks a lot.

  8. #8
    Join Date
    May 2008
    Posts
    0
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    im not very skilled with scar

  9. #9
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lolzor, yeah i wasnt concentrating, just doing what i had to solve his problem
    Project: Welcome To Rainbow

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 P1nky in forum OSR Help
    Replies: 5
    Last Post: 02-23-2008, 03:17 AM
  3. color finding help
    By fORCE_wORKS in forum OSR Help
    Replies: 1
    Last Post: 11-09-2007, 11:18 AM
  4. 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
  •